mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
do not crash when a non-active generator asks for the document
svn path=/trunk/KDE/kdegraphics/okular/; revision=787699
This commit is contained in:
parent
b4be056c11
commit
3b9ad84427
|
@ -332,7 +332,11 @@ void Generator::signalPixmapRequestDone( PixmapRequest * request )
|
|||
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 )
|
||||
|
|
Loading…
Reference in a new issue