r23889 by jghali - Fix crash occuring in some circumstances after undoing frame grouping

scribus-commit scribus-commit at lists.scribus.net
Mon Jun 15 21:42:57 UTC 2020


Author: jghali
Date: Mon Jun 15 21:42:57 2020
New Revision: 23889

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23889
Log:
Fix crash occuring in some circumstances after undoing frame grouping

Modified:
    trunk/Scribus/scribus/ui/propertiespalette_text.cpp

Modified: trunk/Scribus/scribus/ui/propertiespalette_text.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23889&path=/trunk/Scribus/scribus/ui/propertiespalette_text.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_text.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette_text.cpp	Mon Jun 15 21:42:57 2020
@@ -244,7 +244,7 @@
 		return;
 
 	PageItem* currItem = currentItemFromSelection();
-	if (m_doc->m_Selection->count() > 1 )
+	if (m_doc->m_Selection->count() > 1)
 	{
 		setEnabled(false);
 		flopBox->flopRealHeight->setChecked(true);
@@ -258,6 +258,7 @@
 		{
 		case -1:
 			m_haveItem = false;
+			m_item = nullptr;
 			setEnabled(false);
 			break;
 		case PageItem::TextFrame:




More information about the scribus-commit mailing list