r24620 by jghali - #16543: Scribus crashes after applied undo-redo operation on the cut text frame

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 10 11:03:30 UTC 2021


Author: jghali
Date: Sat Apr 10 11:03:30 2021
New Revision: 24620

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24620
Log:
#16543: Scribus crashes after applied undo-redo operation on the cut text frame

Modified:
    trunk/Scribus/scribus/appmodehelper.cpp

Modified: trunk/Scribus/scribus/appmodehelper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24620&path=/trunk/Scribus/scribus/appmodehelper.cpp
==============================================================================
--- trunk/Scribus/scribus/appmodehelper.cpp	(original)
+++ trunk/Scribus/scribus/appmodehelper.cpp	Sat Apr 10 11:03:30 2021
@@ -660,6 +660,8 @@
 			}
 			else
 			{
+				const ParagraphStyle& curStyle = currItem->itemText.defaultStyle();
+				doc->currentStyle.setContext(curStyle.context());
 				doc->currentStyle = currItem->itemText.defaultStyle();
 			}
 




More information about the scribus-commit mailing list