r20167 by jghali - #13139: using drop shadow continues to record actions in action history just by scrolling

scribus-commit scribus-commit at lists.scribus.net
Wed Jun 17 06:40:16 UTC 2015


Author: jghali
Date: Wed Jun 17 06:40:16 2015
New Revision: 20167

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20167
Log:
#13139: using drop shadow continues to record actions in action history just by scrolling

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20167&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Wed Jun 17 06:40:16 2015
@@ -2343,6 +2343,9 @@
 		double transS = lineTransparency();
 		bool savedShadow = hasSoftShadow();
 		double rotation_Old = m_rotation;
+		// #13139: Because setHasSoftShadow() and al. create undo actions
+		// if item has a drop shadow setup
+		UndoManager::instance()->setUndoEnabled(false);
 		setHasSoftShadow(false);
 		m_rotation = 0;
 		isEmbedded = true;
@@ -2370,6 +2373,7 @@
 		isEmbedded = false;
 		m_rotation = rotation_Old;
 		setHasSoftShadow(savedShadow);
+		UndoManager::instance()->setUndoEnabled(true);
 	}
 	else
 	{




More information about the scribus-commit mailing list