[rkward-cvs] SF.net SVN: rkward-code:[4550] trunk/rkward/rkward/settings/ rksettingsmoduleplugins.cpp

tfry at users.sf.net tfry at users.sf.net
Thu Feb 21 12:20:13 UTC 2013


Revision: 4550
          http://sourceforge.net/p/rkward/code/4550
Author:   tfry
Date:     2013-02-21 12:20:10 +0000 (Thu, 21 Feb 2013)
Log Message:
-----------
Fix failure to remove last row

Modified Paths:
--------------
    trunk/rkward/rkward/settings/rksettingsmoduleplugins.cpp

Modified: trunk/rkward/rkward/settings/rksettingsmoduleplugins.cpp
===================================================================
--- trunk/rkward/rkward/settings/rksettingsmoduleplugins.cpp	2013-02-21 12:14:21 UTC (rev 4549)
+++ trunk/rkward/rkward/settings/rksettingsmoduleplugins.cpp	2013-02-21 12:20:10 UTC (rev 4550)
@@ -609,7 +609,7 @@
 	RK_TRACE (SETTINGS);
 	RK_ASSERT (!parent.isValid ());
 
-	if ((row < 0) || (count < 1) || (row + count > rowCount () - 1)) return false;
+	if ((row < 0) || (count < 1) || (row + count > rowCount ())) return false;
 	for (int i = row + count - 1; i >= row; --i) {
 		plugin_maps.removeAt (i);
 	}





More information about the rkward-tracker mailing list