]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for empty value
authorRoman Rolinsky <rolinsky@femagsoft.com>
Mon, 5 Jun 2006 17:48:00 +0000 (17:48 +0000)
committerRoman Rolinsky <rolinsky@femagsoft.com>
Mon, 5 Jun 2006 17:48:00 +0000 (17:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/tools/XRCed/params.py

index c5f3f198e334bd1f31faedebb82bc8392c6b99f0..71a74149892cafc77b8341df667b861ed0b1818e 100644 (file)
@@ -639,7 +639,10 @@ class ParamContent(PPanel):
         self.freeze = True
         if not value: value = []
         self.value = value
-        repr_ = reduce(lambda a,b: '%s|%s' % (a,b), value)
+        if value:
+            repr_ = reduce(lambda a,b: '%s|%s' % (a,b), value)
+        else:
+            repr_ = ''
         self.text.SetValue(repr_)  # update text ctrl
         self.freeze = False
     def OnButtonEdit(self, evt):