r21711 by craig - Fix Coverity issue 1396864: Identical code for different branches

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 8 15:46:43 UTC 2017


Author: craig
Date: Sun Jan  8 15:46:43 2017
New Revision: 21711

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21711
Log:
Fix Coverity issue 1396864: Identical code for different branches

Modified:
    trunk/Scribus/scribus/ui/textpalette.cpp

Modified: trunk/Scribus/scribus/ui/textpalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21711&path=/trunk/Scribus/scribus/ui/textpalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/textpalette.cpp	(original)
+++ trunk/Scribus/scribus/ui/textpalette.cpp	Sun Jan  8 15:46:43 2017
@@ -255,14 +255,7 @@
 		case PageItem::ImageFrame:
 		case PageItem::LatexFrame:
 		case PageItem::OSGFrame:
-			if (currItem->asOSGFrame())
-			{
-				textPal->setEnabled(false);
-			}
-			else
-			{
-				textPal->setEnabled(false);
-			}
+			textPal->setEnabled(false);
 			break;
 		case PageItem::TextFrame:
 			textPal->setEnabled(true);




More information about the scribus-commit mailing list