editors/Viewer.py
changeset 1251 d9ed42e44a50
parent 1250 7e6de17c687a
child 1252 18cd1357e8d3
--- a/editors/Viewer.py	Wed Jun 12 11:01:27 2013 +0200
+++ b/editors/Viewer.py	Wed Jun 12 11:32:44 2013 +0200
@@ -2392,9 +2392,9 @@
         dialog.Destroy()
 
     def AddNewDivergence(self, bbox):
-        dialog = SFCDivergenceDialog(self.ParentWindow, self.Controler)
+        dialog = SFCDivergenceDialog(self.ParentWindow, self.Controler, self.TagName)
         dialog.SetPreviewFont(self.GetFont())
-        dialog.SetMinSize((bbox.width, bbox.height))
+        dialog.SetMinElementSize((bbox.width, bbox.height))
         if dialog.ShowModal() == wx.ID_OK:
             id = self.GetNewId()
             values = dialog.GetValues()