<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>144442</bug_id>
          
          <creation_ts>2007-04-20 06:23:37 +0000</creation_ts>
          <short_desc>Crash when loading xmi with actor as object of sequence diagram </short_desc>
          <delta_ts>2007-04-20 07:28:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>umbrello</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Egbert Voigt">egbertmarievoigt</reporter>
          <assigned_to name="Umbrello Development Group">umbrello-devel</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>521669</commentid>
    <comment_count>0</comment_count>
    <who name="Egbert Voigt">egbertmarievoigt</who>
    <bug_when>2007-04-20 06:23:37 +0000</bug_when>
    <thetext>Version:           1.5.7beta1 (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources
Compiler:          gcc 4.1.2 
OS:                Linux

Example to repeat the crash:

 1. Create an actor from scratch
 2. Put this actor in a new sequence diagram
 3. Save the model (test.xmi)
 
Umbrello crash will be occur while loading this previous saved file (test.xmi).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521672</commentid>
    <comment_count>1</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2007-04-20 07:28:43 +0000</bug_when>
    <thetext>SVN commit 656062 by okellogg:

activate(): Resolve m_pObject before doing anything else.
BUG:144442


 M  +1 -0      ChangeLog  
 M  +3 -3      umbrello/umlwidget.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #656061:656062
@@ -33,6 +33,7 @@
 * Class diagram in folder not loaded correctly from xmi (144119)
 * Sequence diagram crashes during message inserting (144293)
 * No synchronisation of comments when round-tripping (144346)
+* Crash when loading xmi with actor as object of sequence diagram (144442)
 
 Version 1.5.61
 
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umlwidget.cpp #656061:656062
@@ -469,9 +469,6 @@
 }
 
 bool UMLWidget::activate(IDChangeLog* /*ChangeLog  = 0 */) {
-    setFont( m_Font );
-    setSize( getWidth(), getHeight() );
-    m_bActivated = true;
     if (widgetHasUMLObject(m_Type) &amp;&amp; m_pObject == NULL) {
         m_pObject = m_pDoc-&gt;findObjectById(m_nId);
         if (m_pObject == NULL) {
@@ -480,6 +477,9 @@
             return false;
         }
     }
+    setFont(m_Font);
+    setSize(getWidth(), getHeight());
+    m_bActivated = true;
     updateComponentSize();
     if( m_pView -&gt; getPastePoint().x() != 0 ) {
         FloatingTextWidget * ft = 0;
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>