# HG changeset patch
# User Laurent Bessard
# Date 1346101589 -7200
# Node ID c994279f205c7252aa03c22112467343571f72f9
# Parent  fedef839bfa899145e6aff673c974d665437d525
Fix bug when opening PouActionDialog while trying to add action to a POU in SFC

diff -r fedef839bfa8 -r c994279f205c dialogs/PouActionDialog.py
--- a/dialogs/PouActionDialog.py	Mon Aug 27 17:51:55 2012 +0200
+++ b/dialogs/PouActionDialog.py	Mon Aug 27 23:06:29 2012 +0200
@@ -63,7 +63,7 @@
         button_sizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)
         self.Bind(wx.EVT_BUTTON, self.OnOK, 
               button_sizer.GetAffirmativeButton())
-        main_sizer.AddSizer(self.ButtonSizer, border=20, 
+        main_sizer.AddSizer(button_sizer, border=20, 
               flag=wx.ALIGN_RIGHT|wx.BOTTOM|wx.LEFT|wx.RIGHT)
             
         self.SetSizer(main_sizer)