From b022b57d19feb86622189603b50235433face398 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sun, 29 May 2016 22:29:09 +1200 Subject: [PATCH] Omit hidden splays from page bounds calculations --- src/printing.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/printing.cc b/src/printing.cc index a2801a24..71b5dfc7 100644 --- a/src/printing.cc +++ b/src/printing.cc @@ -930,6 +930,8 @@ svxPrintDlg::RecalcBounds() list::const_iterator trav = mainfrm->traverses_begin(); list::const_iterator tend = mainfrm->traverses_end(); for ( ; trav != tend; ++trav) { + if (trav->isSplay && !(m_layout.show_mask & SPLAYS)) + continue; vector::const_iterator pos = trav->begin(); vector::const_iterator end = trav->end(); for ( ; pos != end; ++pos) { @@ -949,6 +951,8 @@ svxPrintDlg::RecalcBounds() list::const_iterator trav = mainfrm->surface_traverses_begin(); list::const_iterator tend = mainfrm->surface_traverses_end(); for ( ; trav != tend; ++trav) { + if (trav->isSplay && !(m_layout.show_mask & SPLAYS)) + continue; vector::const_iterator pos = trav->begin(); vector::const_iterator end = trav->end(); for ( ; pos != end; ++pos) { -- 2.11.4.GIT