r19013 by fschmid - Fixed Bug #12109: The fill of a curve with only two nodes is not exported in the PDF
scribus-commit
scribus-commit at lists.scribus.net
Sun Apr 6 08:53:40 UTC 2014
Author: fschmid
Date: Sun Apr 6 08:53:40 2014
New Revision: 19013
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19013
Log:
Fixed Bug #12109: The fill of a curve with only two nodes is not exported in the PDF
Modified:
trunk/Scribus/scribus/pdflib_core.cpp
Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19013&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Sun Apr 6 08:53:40 2014
@@ -2392,7 +2392,7 @@
break;
case PageItem::PolyLine:
case PageItem::Spiral:
- if (ite->PoLine.size() > 4) // && ((ite->PoLine.point(0) != ite->PoLine.point(1)) || (ite->PoLine.point(2) != ite->PoLine.point(3))))
+ if (ite->PoLine.size() > 3) // && ((ite->PoLine.point(0) != ite->PoLine.point(1)) || (ite->PoLine.point(2) != ite->PoLine.point(3))))
{
PutPage("q\n");
if (((ite->GrMask > 0) || (ite->fillTransparency() != 0) || (ite->fillBlendmode() != 0)) && ((Options.Version >= PDFOptions::PDFVersion_14) || (Options.Version == PDFOptions::PDFVersion_X4)))
@@ -4165,7 +4165,7 @@
break;
case PageItem::PolyLine:
case PageItem::Spiral:
- if (ite->PoLine.size() > 4) // && ((ite->PoLine.point(0) != ite->PoLine.point(1)) || (ite->PoLine.point(2) != ite->PoLine.point(3))))
+ if (ite->PoLine.size() > 3) // && ((ite->PoLine.point(0) != ite->PoLine.point(1)) || (ite->PoLine.point(2) != ite->PoLine.point(3))))
{
tmp += "q\n";
if (((ite->GrMask > 0) || (ite->fillTransparency() != 0) || (ite->fillBlendmode() != 0)) && ((Options.Version >= PDFOptions::PDFVersion_14) || (Options.Version == PDFOptions::PDFVersion_X4)))
More information about the scribus-commit
mailing list