r18295 by jghali - #11547: Resizing table after undo triggers crash

scribus-commit scribus-commit at lists.scribus.net
Wed May 29 22:29:06 UTC 2013


Author: jghali
Date: Wed May 29 22:29:06 2013
New Revision: 18295

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18295
Log:
#11547: Resizing table after undo triggers crash

Modified:
    trunk/Scribus/scribus/scpage.cpp

Modified: trunk/Scribus/scribus/scpage.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18295&path=/trunk/Scribus/scribus/scpage.cpp
==============================================================================
--- trunk/Scribus/scribus/scpage.cpp (original)
+++ trunk/Scribus/scribus/scpage.cpp Wed May 29 22:29:06 2013
@@ -323,7 +323,7 @@
 	{
 		if (m_Doc->m_Selection->findItem(ite)!=-1)
 		{
-			if (m_Doc->appMode == modeEdit)
+			if (m_Doc->appMode == modeEdit || m_Doc->appMode == modeEditTable)
 				m_Doc->view()->requestMode(modeNormal);
 			m_Doc->m_Selection->removeItem(ite);
 		}
@@ -379,7 +379,7 @@
 		PageItem* ite = itemList.at(id2);
 		if (m_Doc->m_Selection->findItem(ite)!=-1)
 		{
-			if (m_Doc->appMode == modeEdit)
+			if (m_Doc->appMode == modeEdit || m_Doc->appMode == modeEditTable)
 				m_Doc->view()->requestMode(modeNormal);
 			m_Doc->m_Selection->removeItem(ite);
 		}




More information about the scribus-commit mailing list