r23329 by jghali - Small workaround for old docs to make undo work with spirals
scribus-commit
scribus-commit at lists.scribus.net
Mon Nov 4 16:20:27 UTC 2019
Author: jghali
Date: Mon Nov 4 16:20:27 2019
New Revision: 23329
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23329
Log:
Small workaround for old docs to make undo work with spirals
Modified:
trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23329&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp Mon Nov 4 16:20:27 2019
@@ -5398,6 +5398,7 @@
else if (currItem->asSpiral())
{
PageItem_Spiral *arcitem = currItem->asSpiral();
+ arcitem->FrameType = 3; // Workaround for old docs, otherwise undo breaks spirals
arcitem->spiralStartAngle = attrs.valueAsDouble("spiralStartAngle", 0.0);
arcitem->spiralEndAngle = attrs.valueAsDouble("spiralEndAngle", 360.0);
arcitem->spiralFactor = attrs.valueAsDouble("spiralFactor", 1.2);
More information about the scribus-commit
mailing list