Skip to content

Commit

Permalink
Fix segmentation fault issue in QwtSymbol constructor
Browse files Browse the repository at this point in the history
Fix #87
  • Loading branch information
PierreRaybaut committed Jun 19, 2024
1 parent 018e23d commit cd10bd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# PythonQwt Releases

## Version 0.12.4

- Fixed segmentation fault issue reported in the `PlotPy` project:
- See [PlotPy's Issue #13](https://github.com/PlotPyStack/PlotPy/issues/13) for the
original issue.
- The issue was caused by the `QwtSymbol` class constructor, and more specifically
by its private data object, which instanciated an empty `QtPainterPath` object,
causing a segmentation fault on Linux, Python 3.12 and PyQt5.

## Version 0.12.3

- Fixed `Fatal Python error` issue reported in the `PlotPy` project:
Expand Down
2 changes: 1 addition & 1 deletion qwt/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def __init__(self, st, br, pn, sz):

class Path(object):
def __init__(self):
self.path = QPainterPath()
self.path = None # QPainterPath()
self.graphic = QwtGraphic()

self.path = Path()
Expand Down

0 comments on commit cd10bd5

Please sign in to comment.