Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ImageThought.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ImageThought.py b/src/ImageThought.py
index 459c713..0b3e15e 100644
--- a/src/ImageThought.py
+++ b/src/ImageThought.py
@@ -100,10 +100,10 @@ class ImageThought (ResizableThought):
utils.export_thought_outline (context, self.ul, self.lr, self.background_color, self.am_selected, self.am_primary, utils.STYLE_NORMAL,
(move_x, move_y))
if self.pic:
+ raw_pixels = self.pic.get_pixels_array()
if hasattr(context, "set_source_pixbuf"):
context.set_source_pixbuf (self.pic, self.pic_location[0]+move_x, self.pic_location[1]+move_y)
elif hasattr(context, "set_source_surface"):
- raw_pixels = self.pic.get_pixels_array()
pixel_array = utils.pixbuf_to_cairo (raw_pixels)
image_surface = cairo.ImageSurface.create_for_data(pixel_array, cairo.FORMAT_ARGB32, len(raw_pixels[0]), len(raw_pixels), -1)
context.set_source_surface (image_surface, self.pic_location[0]+move_x, self.pic_location[1]+move_y)