r24999 by jghali - #16767: Dashed lines imported from PDF have incorrect segment lengths

scribus-commit scribus-commit at lists.scribus.net
Mon Mar 7 22:06:14 UTC 2022


Author: jghali
Date: Mon Mar  7 22:06:14 2022
New Revision: 24999

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24999
Log:
#16767: Dashed lines imported from PDF have incorrect segment lengths

Modified:
    branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp

Modified: branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24999&path=/branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
==============================================================================
--- branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp	(original)
+++ branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp	Mon Mar  7 22:06:14 2022
@@ -3707,15 +3707,12 @@
 			m_lineJoin = Qt::BevelJoin;
 			break;
 	}
-	double lw = state->getLineWidth();
 	double *dashPattern;
 	int dashLength;
 	state->getLineDash(&dashPattern, &dashLength, &DashOffset);
 	QVector<double> pattern(dashLength);
 	for (int i = 0; i < dashLength; ++i)
-	{
-		pattern[i] = dashPattern[i] / lw;
-	}
+		pattern[i] = dashPattern[i];
 	DashValues = pattern;
 }
 




More information about the scribus-commit mailing list