Skip to content

Commit d0b5e26

Browse files
committed
Fix canvas rectangle type in drawItems method for QwtPlot
1 parent 0a9a5a6 commit d0b5e26

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# PythonQwt Releases
22

3+
## Version 0.14.4
4+
5+
- Fixed canvas rectangle type in `drawItems` method call in `QwtPlot.drawCanvas` (was causing a hard crash when printing to PDF a canvas with upstream `PlotPy` project)
6+
37
## Version 0.14.3
48

59
- Fixed [Issue #94](https://github.com/PlotPyStack/PythonQwt/issues/94) - Different logarithmic scale behavior when compared to Qwt

qwt/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ def drawCanvas(self, painter):
13911391
:py:meth:`QwtPlotItem.getCanvasMarginHint()`
13921392
"""
13931393
maps = [self.canvasMap(axisId) for axisId in self.AXES]
1394-
self.drawItems(painter, self.__data.canvas.contentsRect(), maps)
1394+
self.drawItems(painter, QRectF(self.__data.canvas.contentsRect()), maps)
13951395

13961396
def drawItems(self, painter, canvasRect, maps):
13971397
"""

0 commit comments

Comments
 (0)