Bug on divergence creation with null size fixed
authorlbessard
Fri, 19 Oct 2007 17:08:46 +0200
changeset 111 0ec40799ba11
parent 110 29b6b70e1721
child 112 317148fc1225
Bug on divergence creation with null size fixed
Viewer.py
--- a/Viewer.py	Fri Oct 19 17:08:08 2007 +0200
+++ b/Viewer.py	Fri Oct 19 17:08:46 2007 +0200
@@ -1277,7 +1277,7 @@
             values = dialog.GetValues()
             divergence = SFC_Divergence(self, values["type"], values["number"], id)
             divergence.SetPosition(bbox.x, bbox.y)
-            min_width, min_height = divergence.GetMinSize()
+            min_width, min_height = divergence.GetMinSize(True)
             divergence.SetSize(max(bbox.width, min_width), max(bbox.height, min_height))
             self.AddBlock(divergence)
             self.Controler.AddCurrentElementEditingDivergence(id, values["type"])