r23251 by jghali - Amend r23245 for the case where text frame contains a single letter

scribus-commit scribus-commit at lists.scribus.net
Thu Oct 10 06:36:51 UTC 2019


Author: jghali
Date: Thu Oct 10 06:36:51 2019
New Revision: 23251

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23251
Log:
Amend r23245 for the case where text frame contains a single letter

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23251&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp	(original)
+++ trunk/Scribus/scribus/scribusview.cpp	Thu Oct 10 06:36:51 2019
@@ -3165,12 +3165,15 @@
 			continue;
 		}
 
-		// We don't need any of the undo actions created by TextToPathPainter. If we did take them into account,
+		// We usually don't need any of the undo actions created by TextToPathPainter. If we did take them into account,
 		// the created items woud reappear when redoing an undone TextToPath action
-		undoManager->setUndoEnabled(false);
+		int textLen = currItem->itemText.length();
+		if (textLen > 1)
+			undoManager->setUndoEnabled(false);
 		TextToPathPainter p(this, currItem, newGroupedItems);
 		currItem->textLayout.render(&p);
-		undoManager->setUndoEnabled(true);
+		if (textLen > 1)
+			undoManager->setUndoEnabled(true);
 
 		if ((currItem->asPathText()) && (currItem->PoShow))
 		{




More information about the scribus-commit mailing list