dabo Commit
Revision 4276
Date: 2008-07-13 15:29:43 -0700 (Sun, 13 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4276

Changed:
U   trunk/dabo/ui/uiwx/dPemMixin.py

Log:
Fixed a bug in the containerCoordinates() method

Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2008-07-13 18:46:58 UTC (rev 4275)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2008-07-13 22:29:43 UTC (rev 4276)
@@ -949,14 +949,15 @@
                if isinstance(cnt, dabo.ui.dPage):
                        cnt = cnt.Parent
                p = self
+               lastPar = None
                found = False
                while (p is not None):
-                       lastPar = p
                        if p is cnt:
                                found = True
                                break
                        l += p.Left
                        t += p.Top
+                       lastPar = p
                        p = p.Parent
                # If we didn't find the container, that means that the object
                # is not contained by the container. This can happen when 




_______________________________________________
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