[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Wed Feb 9 09:53:37 UTC 2005


CVS commit by okellogg: 

Constructor: Set m_Text _prior_ to calling calculateSize().
BUG:98899


  M +5 -7      floatingtext.cpp   1.68


--- kdesdk/umbrello/umbrello/floatingtext.cpp  #1.67:1.68
@@ -38,4 +38,9 @@ FloatingText::FloatingText(UMLView * vie
         m_Text = text;
         m_Role = role;
+        if ( ! UMLApp::app()->getDocument()->loading() ) {
+                calculateSize();
+                setZ( 10 );//make sure always on top.
+                update();
+        }
 }
 
@@ -45,15 +50,8 @@ void FloatingText::init() {
         m_Text = "";
         m_PostText = "";
-        //m_SeqNum = "";
-        //m_Operation = "";
         m_Role = Uml::tr_Floating;
         m_Type = Uml::wt_Text;
         // initialize non-saved (i.e. volatile) data
         m_pLink = NULL;
-        if ( ! UMLApp::app()->getDocument()->loading() ) {
-                calculateSize();
-                setZ( 10 );//make sure always on top.
-                update();
-        }
 }
 






More information about the umbrello-devel mailing list