r25000 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:32 UTC 2022


Author: jghali
Date: Mon Mar  7 22:06:32 2022
New Revision: 25000

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

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=25000&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	Mon Mar  7 22:06:32 2022
@@ -3593,15 +3593,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