Skip to content

Commit 3255ec4

Browse files
committed
Fix TypeError in QwtSymbol.drawSymbol by updating renderSymbols call
Fix #100
1 parent cdc68eb commit 3255ec4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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.6
4+
5+
- Fixed [Issue #100](https://github.com/PlotPyStack/PythonQwt/issues/100) - TypeError in `QwtSymbol.drawSymbol` method due to outdated `renderSymbols` call
6+
37
## Version 0.14.5
48

59
- Merged [PR #98](https://github.com/PlotPyStack/PythonQwt/pull/98): Fix legend still being visible after removed

qwt/symbol.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,7 @@ def drawSymbol(self, painter, point_or_rect):
11041104
painter.scale(ratio, ratio)
11051105
isPinPointEnabled = self.__data.isPinPointEnabled
11061106
self.__data.isPinPointEnabled = False
1107-
pos = QPointF()
1108-
self.renderSymbols(painter, pos, 1)
1107+
self.renderSymbols(painter, [QPointF()])
11091108
self.__data.isPinPointEnabled = isPinPointEnabled
11101109
painter.restore()
11111110

0 commit comments

Comments
 (0)