r22826 by jghali - Fix imported PDF page not correctly placed when cropping enabled and selected box != MediaBox
scribus-commit
scribus-commit at lists.scribus.net
Sat Feb 2 00:40:08 UTC 2019
Author: jghali
Date: Sat Feb 2 00:40:08 2019
New Revision: 22826
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22826
Log:
Fix imported PDF page not correctly placed when cropping enabled and selected box != MediaBox
Modified:
trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
Modified: trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22826&path=/trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp Sat Feb 2 00:40:08 2019
@@ -484,8 +484,12 @@
cropped = optImp->croppingEnabled();
if (!cropped)
crop = cropped;
+ // When displaying pages slices, we should always set useMediaBox to true
+ // in order to use MediaBox (x, y) as coordinate system
if (contentRect != Media_Box)
useMediaBox = gFalse;
+ if (cropped)
+ useMediaBox = gTrue;
/* if (cb > Media_Box)
{
cropped = true;
More information about the scribus-commit
mailing list