Skip to content

Commit 64f35d9

Browse files
Merge pull request #105 from Adrian-B-Moreira/fix-legend-icon
[FIX] Legend icon being rendered incorrectly
2 parents 277e69d + b86f058 commit 64f35d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qwt/null_paintdevice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def metric(self, deviceMetric):
273273
/ self.metric(QPaintDevice.PdmDpiY)
274274
)
275275
else:
276-
value = 0
276+
value = super(QwtNullPaintDevice, self).metric(deviceMetric)
277277
return value
278278

279279
def drawRects(self, rects, rectCount):

0 commit comments

Comments
 (0)