r15154 by jghali - #9129 related : outline palette not properly updated when pasting object to page

scribus-commit scribus-commit at lists.scribus.net
Wed Jun 2 23:20:40 CEST 2010


Revision: 15154
Author: jghali
Date: 2010-06-02T21:16:58.475253Z
Commit message: #9129 related : outline palette not properly updated when pasting object to page

Changeset: 
M  /trunk/Scribus/scribus/scribusview.cpp

Diffs:
Index: scribus/scribusview.cpp
===================================================================
--- scribus/scribusview.cpp	(revision 15153)
+++ scribus/scribusview.cpp	(revision 15154)
@@ -2237,9 +2237,8 @@
 		emit ItemGeom(gw, gh);
 		emit HaveSel(newObjects.itemAt(0)->itemType());
 	}
-	else
+	else if (newObjects.count() == 1)
 	{
-		Q_ASSERT(newObjects.count()==1);
 		PageItem *currItem = newObjects.itemAt(0);
 		if (Doc->useRaster)
 		{
@@ -2256,6 +2255,16 @@
 		}
 		currItem->emitAllToGUI();
 	}
+	else // newObjects.count() == 0
+	{
+		if (activeTransaction)
+		{
+			activeTransaction->cancel();
+			delete activeTransaction;
+			activeTransaction = NULL;
+		}
+		return;
+	}
 	newObjects.clear();
 	if (activeTransaction)
 	{
@@ -2263,6 +2272,7 @@
 		delete activeTransaction;
 		activeTransaction = NULL;
 	}
+	emit DocChanged();
 }
 
 void ScribusView::resizeEvent ( QResizeEvent * event )




More information about the scribus-commit mailing list