r19731 by fschmid - Fixed Bug #12868: PDF open : white zone is imported with black background

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 4 16:04:07 UTC 2015


Author: fschmid
Date: Sun Jan  4 16:04:07 2015
New Revision: 19731

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19731
Log:
Fixed Bug #12868: PDF open : white zone is imported with black background

Modified:
    trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp

Modified: trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19731&path=/trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp Sun Jan  4 16:04:07 2015
@@ -1621,6 +1621,7 @@
 		FPoint wh = out.WidthHeight();
 		if ((out.size() > 3) && ((wh.x() != 0.0) || (wh.y() != 0.0)))
 		{
+			CurrColorStroke = getColor(state->getStrokeColorSpace(), state->getStrokeColor(), &CurrStrokeShade);
 			int z;
 			if (pathIsClosed)
 				z = m_doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, xCoor, yCoor, 10, 10, state->getTransformedLineWidth(), CommonStrings::None, CurrColorStroke, true);
@@ -1698,6 +1699,7 @@
 	FPoint wh = out.WidthHeight();
 	if ((out.size() > 3) && ((wh.x() != 0.0) || (wh.y() != 0.0)))
 	{
+		CurrColorFill = getColor(state->getFillColorSpace(), state->getFillColor(), &CurrFillShade);
 		int z;
 		if (pathIsClosed)
 			z = m_doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, xCoor, yCoor, 10, 10, 0, CurrColorFill, CommonStrings::None, true);
@@ -1742,6 +1744,7 @@
 	FPoint wh = out.WidthHeight();
 	if ((out.size() > 3) && ((wh.x() != 0.0) || (wh.y() != 0.0)))
 	{
+		CurrColorFill = getColor(state->getFillColorSpace(), state->getFillColor(), &CurrFillShade);
 		int z;
 		if (pathIsClosed)
 			z = m_doc->itemAdd(PageItem::Polygon, PageItem::Unspecified, xCoor, yCoor, 10, 10, 0, CurrColorFill, CommonStrings::None, true);




More information about the scribus-commit mailing list