r20796 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 20:54:04 UTC 2016


Author: jghali
Date: Sat Jan 30 20:54:04 2016
New Revision: 20796

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

Modified:
    trunk/Scribus/scribus/nodeeditcontext.cpp

Modified: trunk/Scribus/scribus/nodeeditcontext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20796&path=/trunk/Scribus/scribus/nodeeditcontext.cpp
==============================================================================
--- trunk/Scribus/scribus/nodeeditcontext.cpp	(original)
+++ trunk/Scribus/scribus/nodeeditcontext.cpp	Sat Jan 30 20:54:04 2016
@@ -91,7 +91,7 @@
 			QString name = Doc->nodeEdit.m_isContourLine ? Um::EditContour : Um::EditShape;
 			ScItemState<QPair<FPointArray, FPointArray> > *state =
 				new ScItemState<QPair<FPointArray, FPointArray> >(name);
-			state->set("EDIT_SHAPE_OR_CONTOUR", "edit_shape_or_contour");
+			state->set("EDIT_SHAPE_OR_CONTOUR");
 			state->set("IS_CONTOUR", Doc->nodeEdit.m_isContourLine);
 			state->setItem(qMakePair(*oldClip, newClip));
 			state->set("OLD_X", m_oldItemX);
@@ -127,7 +127,7 @@
 		{
 			QString name = Doc->nodeEdit.m_isContourLine ? Um::EditContour : Um::EditShape;
 			state = new ScItemState<QPair<FPointArray, FPointArray> >(name);
-			state->set("EDIT_SHAPE_OR_CONTOUR", "edit_shape_or_contour");
+			state->set("EDIT_SHAPE_OR_CONTOUR");
 			state->set("IS_CONTOUR", Doc->nodeEdit.m_isContourLine);
 			state->setItem(qMakePair(*oldClip, newClip));
 			undoManager->setUndoEnabled(false);
@@ -376,7 +376,7 @@
 		ScItemState<QPair<FPointArray, FPointArray> > *state =
 		new ScItemState<QPair<FPointArray, FPointArray> >(Um::ResetControlPoint, "",
 														currItem->getUPixmap());
-		state->set("EDIT_SHAPE_OR_CONTOUR", "edit_shape_or_contour");
+		state->set("EDIT_SHAPE_OR_CONTOUR");
 		state->set("IS_CONTOUR", Doc->nodeEdit.m_isContourLine);
 		state->setItem(qMakePair(*oldClip, newClip));
 		state->set("OLD_X", m_oldItemX);
@@ -476,7 +476,7 @@
 		ScItemState<QPair<FPointArray, FPointArray> > *state =
 		new ScItemState<QPair<FPointArray, FPointArray> >(Um::ResetControlPoints, "",
 														currItem->getUPixmap());
-		state->set("EDIT_SHAPE_OR_CONTOUR", "edit_shape_or_contour");
+		state->set("EDIT_SHAPE_OR_CONTOUR");
 		state->set("IS_CONTOUR", Doc->nodeEdit.m_isContourLine);
 		state->setItem(qMakePair(*oldClip, newClip));
 		state->set("OLD_X", m_oldItemX);




More information about the scribus-commit mailing list