r20511 by craig -

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 2 09:40:23 UTC 2015


Author: craig
Date: Mon Nov  2 09:40:23 2015
New Revision: 20511

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20511
Log:
#11765: crash when deleting footnote's text <aliyousuf>

Modified:
    trunk/Scribus/scribus/canvasmode_edit.cpp

Modified: trunk/Scribus/scribus/canvasmode_edit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20511&path=/trunk/Scribus/scribus/canvasmode_edit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_edit.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_edit.cpp	Mon Nov  2 09:40:23 2015
@@ -140,7 +140,8 @@
 				break;
 		}
 		blinkTextCursor();
-
+		if (!currItem->isTextFrame() || (currItem->isAutoNoteFrame() && currItem->asNoteFrame()->notesList().isEmpty()))
+			m_ScMW->slotDocCh(false);
 		currItem->handleModeEditKey(e, m_keyRepeat);
 		if (currItem->isAutoNoteFrame() && currItem->asNoteFrame()->notesList().isEmpty())
 		{
@@ -151,8 +152,6 @@
 			}
 		}
 		m_keyRepeat = oldKeyRepeat;
-		if (!currItem->isTextFrame() || (currItem->isAutoNoteFrame() && currItem->asNoteFrame()->notesList().isEmpty()))
-			m_ScMW->slotDocCh(false);
 		m_doc->regionsChanged()->update(QRectF());
 	}
 	m_keyRepeat = false;




More information about the scribus-commit mailing list