summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-02-27 16:26:39 +0400
committerMichael Meeks <michael.meeks@suse.com>2012-02-27 13:21:31 +0000
commit6c0f9cc00e81862e888b680a83bd14c0f16811aa (patch)
tree408073081d29a54941a9473185d73726604aeee8
parent9bd7655d4bf1df440ed6af11c213bfa346b5b287 (diff)
fdo#31966: do not create an empty slide when printing handoutslibreoffice-3-4
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx4
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>(