Skip to content

Commit b86f058

Browse files
Fix legend icon being rendered incorrectly
1 parent 277e69d commit b86f058

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)