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

Oliver Kellogg okellogg at users.sourceforge.net
Wed Jul 18 20:25:33 UTC 2007


SVN commit 689657 by okellogg:

currentRoot(): m_pCurrentRoot being NULL is a hard error.

 M  +2 -3      umldoc.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umldoc.cpp #689656:689657
@@ -1114,9 +1114,8 @@
     if (currentView == NULL) {
         if (m_pCurrentRoot)
             return m_pCurrentRoot;
-        kDebug() << "UMLDoc::currentRoot: currentView is NULL, assuming Logical View"
-            << endl;
-        return m_root[Uml::mt_Logical];
+        kError() << "UMLDoc::currentRoot: m_pCurrentRoot is NULL" << endl;
+        return NULL;
     }
     UMLFolder *f = currentView->getFolder();
     while (f->getUMLPackage()) {




More information about the umbrello-devel mailing list