[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdesdk/umbrello/umbrello
From:       Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date:       2007-07-18 20:25:33
Message-ID: 1184790333.171681.11509.nullmailer () svn ! kde ! org
[Download RAW message or body]

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()) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic