]> git.saurik.com Git - wxWidgets.git/commitdiff
Workaround for toolbartool tooltip not getting written to the XRC file.
authorRobin Dunn <robin@alldunn.com>
Tue, 8 Mar 2005 01:47:45 +0000 (01:47 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 8 Mar 2005 01:47:45 +0000 (01:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/tools/XRCed/panel.py

index 466af6f25858488d1af9704e162a794d7226b9cd..902c0612f5ade41244125556e28ac65fe3b61c87 100644 (file)
@@ -201,7 +201,10 @@ class ParamPage(wxPanel):
                 xxx.params[param] = xxxParam(elem)
             # Find place to put new element: first present element after param
             found = False
-            paramStyles = xxx.allParams + xxx.styles
+            if xxx.hasStyle: 
+                paramStyles = xxx.allParams + xxx.styles
+            else:
+                paramStyles = xxx.allParams 
             for p in paramStyles[paramStyles.index(param) + 1:]:
                 # Content params don't have same type
                 if xxx.params.has_key(p) and p != 'content':