r24025 by jghali - #16249: fix copy/paste error in the code processing svg marker-start attribute
scribus-commit
scribus-commit at lists.scribus.net
Thu Sep 24 00:43:58 UTC 2020
Author: jghali
Date: Thu Sep 24 00:43:58 2020
New Revision: 24025
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24025
Log:
#16249: fix copy/paste error in the code processing svg marker-start attribute
Modified:
trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
Modified: trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24025&path=/trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp Thu Sep 24 00:43:58 2020
@@ -851,7 +851,7 @@
FPoint Vector = item->PoLine.point(xx);
if ((End.x() != Vector.x()) || (End.y() != Vector.y()))
{
- double r = atan2(End.y()-Vector.y(),End.x()-Vector.x())*(180.0/M_PI);
+ double r = atan2(End.y() - Vector.y(), End.x() - Vector.x()) * (180.0 / M_PI);
QTransform arrowTrans;
double bX = item->xPos() + End.x();
double bY = item->yPos() + End.y();
@@ -876,7 +876,7 @@
}
if (!gc->startMarker.isEmpty())
{
- QString marker = gc->endMarker;
+ QString marker = gc->startMarker;
if (importedPattTrans.contains(marker))
marker = importedPattTrans[marker];
if (markers.contains(marker))
@@ -887,7 +887,7 @@
FPoint Vector = item->PoLine.point(xx);
if ((End.x() != Vector.x()) || (End.y() != Vector.y()))
{
- double r = atan2(End.y()-Vector.y(),End.x()-Vector.x())*(180.0/M_PI);// - 180.0;
+ double r = atan2(End.y() - Vector.y(), End.x() - Vector.x()) * (180.0 / M_PI) - 180.0;
QTransform arrowTrans;
double bX = item->xPos() + End.x();
double bY = item->yPos() + End.y();
More information about the scribus-commit
mailing list