r22245 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Tue Dec 12 11:59:06 UTC 2017
Author: jghali
Date: Tue Dec 12 11:59:06 2017
New Revision: 22245
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22245
Log:
fix text being inserted at wrong place when redoing text paste
Modified:
trunk/Scribus/scribus/pageitem.cpp
Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22245&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Tue Dec 12 11:59:06 2017
@@ -6516,7 +6516,7 @@
asTextFrame()->deleteSelectedTextFromFrame();
}
else
- itemText.insertChars(text, true);
+ itemText.insertChars(start, text, true);
}
void PageItem::restorePasteText(SimpleState *ss, bool isUndo)
@@ -6531,7 +6531,7 @@
asTextFrame()->deleteSelectedTextFromFrame();
}
else
- itemText.insert(is->getItem());
+ itemText.insert(start, is->getItem());
}
void PageItem::restoreColumnsGap(SimpleState *ss, bool isUndo)
More information about the scribus-commit
mailing list