diff options
-rw-r--r-- | starmath/source/document.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 1e41db81ea96..254677f3286a 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -506,7 +506,8 @@ SmCursor& SmDocShell::GetCursor(){ SmPrinterAccess::SmPrinterAccess( SmDocShell &rDocShell ) { - if ( 0 != (pPrinter = rDocShell.GetPrt()) ) + pPrinter = rDocShell.GetPrt(); + if ( pPrinter ) { pPrinter->Push( PushFlags::MAPMODE ); if ( SfxObjectCreateMode::EMBEDDED == rDocShell.GetCreateMode() ) |