r22488 by jghali - #15281: Warning: Expression is always false because 'else if' condition matches previous condition

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 29 00:37:59 UTC 2018


Author: jghali
Date: Sun Apr 29 00:37:59 2018
New Revision: 22488

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22488
Log:
#15281: Warning: Expression is always false because 'else if' condition matches previous condition

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

Modified: trunk/Scribus/scribus/ui/propertiespalette_xyz.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22488&path=/trunk/Scribus/scribus/ui/propertiespalette_xyz.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_xyz.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette_xyz.cpp	Sun Apr 29 00:37:59 2018
@@ -438,7 +438,7 @@
 			m_ScMW->view->RCenter = FPoint(gx + gw / 2.0, gy + gh / 2.0);
 		else if (bp == 3)
 			m_ScMW->view->RCenter = FPoint(gx, gy + gh);
-		else if (bp == 0)
+		else if (bp == 4)
 			m_ScMW->view->RCenter = FPoint(gx + gw, gy + gh);
 		xposLabel->setText( tr( "&X-Pos:" ) );
 		yposLabel->setText( tr( "&Y-Pos:" ) );




More information about the scribus-commit mailing list