summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/gdi/gdimtf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 7158d4db80c3..4fc7d3f34014 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -324,7 +324,7 @@ void GDIMetaFile::Play( GDIMetaFile& rMtf, size_t nPos )
for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ )
{
- if( !Hook() )
+ if( !Hook() && pAction )
{
pAction->Duplicate();
rMtf.AddAction( pAction );
@@ -360,7 +360,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos )
size_t i = 0;
for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ )
{
- if( !Hook() )
+ if( !Hook() && pAction )
{
MetaCommentAction* pCommentAct = static_cast<MetaCommentAction*>(pAction);
if( pAction->GetType() == META_COMMENT_ACTION &&