[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Wed Sep 13 21:37:28 UTC 2006


SVN commit 583979 by okellogg:

saveToXMI(): Don't warn about m_pObject being NULL if m_Type denotes a diagram.

 M  +3 -2      umllistviewitem.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umllistviewitem.cpp #583978:583979
@@ -632,8 +632,9 @@
     UMLDoc *umldoc = s_pListView->getDocument();
     UMLFolder *extFolder = NULL;
     if (m_pObject == NULL) {
-        kdError() << "UMLListViewItem::saveToXMI(" << m_Label
-            << "): m_pObject is NULL" << endl;
+        if (! Model_Utils::typeIsDiagram(m_Type))
+            kdError() << "UMLListViewItem::saveToXMI(" << m_Label
+                << "): m_pObject is NULL" << endl;
         itemElement.setAttribute( "label", m_Label );
     } else if (m_pObject->getID() == Uml::id_None) {
         if (m_Label.isEmpty()) {




More information about the umbrello-devel mailing list