r23636 by jghali - Fix copy/paste errors in mark undo/redo code

scribus-commit scribus-commit at lists.scribus.net
Tue Apr 21 21:39:44 UTC 2020


Author: jghali
Date: Tue Apr 21 21:39:44 2020
New Revision: 23636

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23636
Log:
Fix copy/paste errors in mark undo/redo code

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23636&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Tue Apr 21 21:39:44 2020
@@ -1995,7 +1995,7 @@
 			if (is->contains("dName"))
 				mrk->setMark(is->get("dName"), (MarkType) is->getInt("dType"));
 			if (is->getItem("itemPtr") != nullptr)
-				mrk->setItemPtr((PageItem*) is->getItem("itemPtrOLD"));
+				mrk->setItemPtr((PageItem*) is->getItem("itemPtr"));
 		}
 		else if (markAction == "eraseFromText") ////for non-unique marks
 		{
@@ -2049,7 +2049,7 @@
 			if (is->contains("dName"))
 				mrk->setMark(is->get("dName"), (MarkType) is->getInt("dType"));
 			if (is->getItem("itemPtr") != nullptr)
-				mrk->setItemPtr((PageItem*) is->getItem("itemPtrOLD"));
+				mrk->setItemPtr((PageItem*) is->getItem("itemPtr"));
 			if (mrk->isType(MARKNoteMasterType))
 			{
 				NotesStyle* nStyle = getNotesStyle(is->get("nStyle"));;




More information about the scribus-commit mailing list