r23734 by jghali - Fix coverity 1350440, 1350436: Array compared against 0

scribus-commit scribus-commit at lists.scribus.net
Sun May 10 13:51:54 UTC 2020


Author: jghali
Date: Sun May 10 13:51:54 2020
New Revision: 23734

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23734
Log:
Fix coverity 1350440, 1350436: Array compared against 0

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23734&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp	(original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp	Sun May 10 13:51:54 2020
@@ -3969,7 +3969,7 @@
 					{
 						ip = new ScItemState<ParagraphStyle>(Um::InsertText, "", Um::ICreate);
 						ip->set("INSERT_FRAMEPARA");
-						ip->set("ETEA", "insert_framepara");
+						ip->set("ETEA", QString("insert_framepara"));
 						ip->set("START", cursorPos);
 						ip->setItem(itemText.paragraphStyle(cursorPos));
 						if (isNoteFrame())
@@ -4461,7 +4461,7 @@
 				{
 					ip = new ScItemState<ParagraphStyle>(Um::InsertText, "", Um::ICreate);
 					ip->set("INSERT_FRAMEPARA");
-					ip->set("ETEA", "insert_framepara");
+					ip->set("ETEA", QString("insert_framepara"));
 					ip->set("START", cursorPos);
 					ip->setItem(itemText.paragraphStyle(cursorPos));
 					if (isNoteFrame())
@@ -4709,7 +4709,7 @@
 					undoTarget = m_Doc;
 				ip = new ScItemState<ParagraphStyle>(Um::DeleteText, "", Um::IDelete);
 				ip->set("DELETE_FRAMEPARA");
-				ip->set("ETEA", "delete_framepara");
+				ip->set("ETEA", QString("delete_framepara"));
 				ip->set("START", start);
 				ip->setItem(itemText.paragraphStyle(i));
 				lastPos = i + 1;




More information about the scribus-commit mailing list