From 973c28a2947798dfd7efe59ac9b55f2585504679 Mon Sep 17 00:00:00 2001
From: tassaron
Date: Wed, 27 Apr 2022 12:42:45 -0400
Subject: fix segmentation fault when rendering Color component Pillow's
ImageQt is a subclass of QImage
---
src/toolkit/frame.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'src/toolkit')
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):
--
cgit v1.2.3
ming' title='kj-diagramming Git repository'/>
| Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|