r18060 by jghali - #11335, Scribus fails to import PS files created by itself : Fix a variable being used without being initialized
scribus-commit
scribus-commit at lists.scribus.net
Sun Jan 6 16:17:14 UTC 2013
Author: jghali
Date: Sun Jan 6 16:17:13 2013
New Revision: 18060
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18060
Log:
#11335, Scribus fails to import PS files created by itself : Fix a variable being used without being initialized
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=18060&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 Sun Jan 6 16:17:13 2013
@@ -950,8 +950,10 @@
QRectF PdfPlug::getCBox(int box, int pgNum)
{
- PDFRectangle *cBox;
- if (box == Bleed_Box)
+ PDFRectangle *cBox = NULL;
+ if (box == Media_Box)
+ cBox = m_pdfDoc->getPage(pgNum)->getMediaBox();
+ else if (box == Bleed_Box)
cBox = m_pdfDoc->getPage(pgNum)->getBleedBox();
else if (box == Trim_Box)
cBox = m_pdfDoc->getPage(pgNum)->getTrimBox();
More information about the scribus-commit
mailing list