dabo Commit
Revision 5153
Date: 2009-03-27 15:03:25 -0700 (Fri, 27 Mar 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5153
Changed:
U trunk/ide/ReportDesigner.py
Log:
Need to cache the image at the various ZoomFactor settings, too, for the image
to zoom.
Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2009-03-27 21:53:10 UTC (rev 5152)
+++ trunk/ide/ReportDesigner.py 2009-03-27 22:03:25 UTC (rev 5153)
@@ -1420,7 +1420,7 @@
if imageFile is not None:
if os.path.exists(imageFile)
and not os.path.isdir(imageFile):
- bmp =
self._cachedBitmaps.get(imageFile, None)
+ bmp =
self._cachedBitmaps.get((imageFile, self.Parent.ZoomFactor), None)
if bmp is None:
import wx
expr = None
@@ -1429,7 +1429,7 @@
## scalemode
prop. For now, we just unconditionally rescale:
img.Rescale(rect[2], rect[3])
bmp =
img.ConvertToBitmap()
-
self._cachedBitmaps[imageFile] = bmp
+
self._cachedBitmaps[(imageFile, self.Parent.ZoomFactor)] = bmp
else:
expr = "<< file not
found >>"
else:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]