r14781 by jghali - #8859 : bad master page margins in double page layout
scribus-commit
scribus-commit at lists.scribus.net
Sat Feb 20 18:10:37 CET 2010
Revision: 14781
Author: jghali
Date: 2010-02-20T17:03:35.329250Z
Commit message: #8859 : bad master page margins in double page layout
Changeset:
M /trunk/Scribus/scribus/page.cpp
Diffs:
Index: scribus/page.cpp
===================================================================
--- scribus/page.cpp (revision 14780)
+++ scribus/page.cpp (revision 14781)
@@ -365,12 +365,14 @@
m_initialWidth = sourcePage->m_initialWidth;
m_initialHeight = sourcePage->m_initialHeight;
- Margins.Top = pageMargins.Top;
+ Margins.Top = pageMargins.Top;
Margins.Bottom = pageMargins.Bottom;
- Margins.Left = pageMargins.Left;//todo fix for layouts
- Margins.Right = pageMargins.Right;
- initialMargins.Top = pageMargins.Top;
- initialMargins.Bottom = pageMargins.Bottom;
- initialMargins.Left = pageMargins.Left;
- initialMargins.Right = pageMargins.Right;
+ Margins.Left = pageMargins.Left;//todo fix for layouts
+ Margins.Right = pageMargins.Right;
+ // #8859 do not get initialMargins from pageMargins otherwise
+ // margins may be inverted when applying master pages
+ initialMargins.Top = sourcePage->initialMargins.Top;
+ initialMargins.Bottom = sourcePage->initialMargins.Bottom;
+ initialMargins.Left = sourcePage->initialMargins.Left;
+ initialMargins.Right = sourcePage->initialMargins.Right;
}
More information about the scribus-commit
mailing list