r14064 by jghali - #8417: bleed is not handled correctly on master pages
scribus-commit
scribus-commit at lists.scribus.net
Tue Sep 29 23:30:32 CEST 2009
Revision: 14064
Author: jghali
Date: 2009-09-29T21:31:26.722123Z
Commit message: #8417: bleed is not handled correctly on master pages
Changeset:
M /trunk/Scribus/scribus/scribusdoc.cpp
Diffs:
Index: scribus/scribusdoc.cpp
===================================================================
--- scribus/scribusdoc.cpp (revision 14063)
+++ scribus/scribusdoc.cpp (revision 14064)
@@ -4382,12 +4382,22 @@
}
else
{
- if (locationOfPage(page->pageNr()) == LeftPage)
+ PageLocation pageLocation = MiddlePage;
+ if (page->pageName().isEmpty()) // Standard page
+ pageLocation = locationOfPage(page->pageNr());
+ else if (page->LeftPg == 1) // Left Master page
+ pageLocation = LeftPage;
+ else if (page->LeftPg == 0) // Right Master page
+ pageLocation = RightPage;
+ else // Middle Master page
+ pageLocation = MiddlePage;
+
+ if (pageLocation == LeftPage)
{
bleedData.Right = bleeds.Left;
bleedData.Left = bleeds.Right;
}
- else if (locationOfPage(page->pageNr()) == RightPage)
+ else if (pageLocation == RightPage)
{
bleedData.Right = bleeds.Right;
bleedData.Left = bleeds.Left;
More information about the scribus-commit
mailing list