aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortassaron2022-04-27 12:42:45 -0400
committertassaron2022-04-27 12:42:45 -0400
commit973c28a2947798dfd7efe59ac9b55f2585504679 (patch)
tree379b118b0c1233caed2c93f61380c9e463ed5b62 /src
parent17b4cba6d1a5f24b4de3b53f79b93dd409e28ccd (diff)
fix segmentation fault when rendering Color component
Pillow's ImageQt is a subclass of QImage
Diffstat (limited to 'src')
-rw-r--r--src/toolkit/frame.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/toolkit/frame.py b/src/toolkit/frame.py
index f2511fe..520bd43 100644
--- a/src/toolkit/frame.py
+++ b/src/toolkit/frame.py
@@ -22,7 +22,8 @@ class FramePainter(QtGui.QPainter):
'''
def __init__(self, width, height):
image = BlankFrame(width, height)
- self.image = QtGui.QImage(ImageQt(image))
+ log.debug("Creating QImage from PIL image object")
+ self.image = ImageQt(image)
super().__init__(self.image)
def setPen(self, penStyle):