diff options
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 758e5ed85..64cd47883 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1967,8 +1967,8 @@ private: // Create a printer page when we have found one page for each // placeholder or when this is the last (and special) loop. - if (aPageIndices.size() == nShapeCount - || nIndex==nCount) + if (!aPageIndices.empty() && + (aPageIndices.size() == nShapeCount || nIndex == nCount)) { maPrinterPages.push_back( ::boost::shared_ptr<PrinterPage>( |