dabo Commit
Revision 5644
Date: 2010-02-04 07:37:18 -0800 (Thu, 04 Feb 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5644

Changed:
U   trunk/ide/ClassDesignerComponents.py

Log:
The recent change to make dImage a data-aware control had an unintended effect 
in the Class Designer: saving an image resulted in not only saving the path, 
but also the complete byte stream of that image in the Value property. This 
fixes that oversight.



Diff:
Modified: trunk/ide/ClassDesignerComponents.py
===================================================================
--- trunk/ide/ClassDesignerComponents.py        2010-02-04 14:33:11 UTC (rev 
5643)
+++ trunk/ide/ClassDesignerComponents.py        2010-02-04 15:37:18 UTC (rev 
5644)
@@ -180,6 +180,9 @@
                                                continue
                        if prop == "BackColor" and isinstance(self, 
(LayoutPanel, LayoutSpacerPanel)):
                                continue
+                       if isinstance(self, dabo.ui.dImage) and (prop == 
"Value") and self.Picture:
+                               # Don't save the byte stream if there is an 
image path
+                               continue
 
                        if hasattr(self, prop):
                                val = eval("self.%s" % prop)



_______________________________________________
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]

Reply via email to