Skip to content

Commit 13e851f

Browse files
committed
Fixed regression introduced by last revision
1 parent 8a9455b commit 13e851f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

qwt/plot_marker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,10 @@ def draw(self, painter, xMap, yMap, canvasRect):
238238
)
239239
self.drawLines(painter, canvasRect, pos)
240240
if self.__data.symbol and self.__data.symbol.style() != QwtSymbol.NoSymbol:
241-
sz = self.__data.symbol.size().toSize()
241+
sz = self.__data.symbol.size()
242+
width, height = int(sz.width()), int(sz.height())
242243
clipRect = QRectF(
243-
canvasRect.adjusted(-sz.width(), -sz.height(), sz.width(), sz.height())
244+
canvasRect.adjusted(-width, -height, width, height)
244245
)
245246
if clipRect.contains(pos):
246247
self.__data.symbol.drawSymbols(painter, [pos])

0 commit comments

Comments
 (0)