[PATCH] fdo#31966: do not create an empty slide when printing handouts
Ivan Timofeev
timofeev.i.s at gmail.com
Mon Feb 27 04:26:39 PST 2012
---
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 758e5ed..64cd478 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>(
--
1.7.9
--------------010902070909030502060608--
More information about the LibreOffice
mailing list