r16227 by jghali - #9650: correctly record item name change in undo
scribus-commit
scribus-commit at lists.scribus.net
Sat Jan 8 16:18:15 CET 2011
Author: jghali
Date: Sat Jan 8 15:18:15 2011
New Revision: 16227
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16227
Log:
#9650: correctly record item name change in undo
Modified:
trunk/Scribus/scribus/pageitem.cpp
Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16227&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Sat Jan 8 15:18:15 2011
@@ -2519,11 +2519,12 @@
return; // nothing to do -> return
if (newName.isEmpty())
return;
+ QString oldName = AnName;
AnName = generateUniqueCopyName(newName);
if (UndoManager::undoEnabled())
{
SimpleState *ss = new SimpleState(Um::Rename, QString(Um::FromTo).arg(AnName).arg(newName));
- ss->set("OLD_NAME", AnName);
+ ss->set("OLD_NAME", oldName);
ss->set("NEW_NAME", newName);
undoManager->action(this, ss);
}
More information about the scribus-commit
mailing list