r20800 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 21:06:51 UTC 2016


Author: jghali
Date: Sat Jan 30 21:06:51 2016
New Revision: 20800

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20800
Log:
coverity: "array compared against 0" errors in ScribusView

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20800&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp	(original)
+++ trunk/Scribus/scribus/scribusview.cpp	Sat Jan 30 21:06:51 2016
@@ -1045,7 +1045,7 @@
 									{
 										PageItem* newItem = Doc->m_Selection->itemAt(i);
 										ScItemState<PageItem*> *is = new ScItemState<PageItem*>("Create PageItem");
-										is->set("CREATE_ITEM", "create_item");
+										is->set("CREATE_ITEM");
 										is->setItem(newItem);
 										//Undo target rests with the Page for object specific undo
 										int pindex = (newItem->OwnPage > -1) ? newItem->OwnPage : 0;
@@ -1493,7 +1493,7 @@
 			currItem->checkChanges(true);
 			undoManager->setUndoEnabled(true);
 			SimpleState *ss = new SimpleState(Um::EditContourLine, "", Um::IBorder);
-			ss->set("EDIT_CONTOUR", "edit_contour");
+			ss->set("EDIT_CONTOUR");
 			ss->set("MODE", mode);
 			ss->set("ROT", rot);
 			ss->set("SCALING", scaling);
@@ -1600,7 +1600,7 @@
 		currItem->checkChanges(true);
 		undoManager->setUndoEnabled(true);
 		SimpleState *ss = new SimpleState(Um::EditShape, "", Um::IBorder);
-		ss->set("EDIT_SHAPE", "edit_shape");
+		ss->set("EDIT_SHAPE");
 		ss->set("MODE", mode);
 		ss->set("ROT", rot);
 		ss->set("SCALING", scaling);




More information about the scribus-commit mailing list