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

List:       kde-commits
Subject:    branches/KDE/4.0/kdegraphics/okular/core
From:       Pino Toscano <pino () kde ! org>
Date:       2008-03-19 17:04:46
Message-ID: 1205946286.305132.18358.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 787704 by pino:

do not crash when a non-active generator asks for the document


 M  +5 -1      generator.cpp  


--- branches/KDE/4.0/kdegraphics/okular/core/generator.cpp #787703:787704
@@ -326,7 +326,11 @@
 const Document * Generator::document() const
 {
     Q_D( const Generator );
-    return d->m_document->m_parent;
+    if ( d->m_document )
+    {
+        return d->m_document->m_parent;
+    }
+    return 0;
 }
 
 void Generator::setFeature( GeneratorFeature feature, bool on )
[prev in list] [next in list] [prev in thread] [next in thread] 

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