diff options
Diffstat (limited to 'sd/source/ui/view/DocumentRenderer.cxx')
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index bf23f1a30cdb..149e328e7022 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1375,9 +1375,8 @@ private: PrintInfo aInfo (mpPrinter, mpOptions->IsPrintMarkedOnly()); - if (!(aInfo.mpPrinter!=nullptr && pShell!=nullptr)) -return; - + if (aInfo.mpPrinter==nullptr || pShell==nullptr) + return; MapMode aMap (aInfo.mpPrinter->GetMapMode()); aMap.SetMapUnit(MapUnit::Map100thMM); |