[rkward-cvs] SF.net SVN: rkward:[3004] trunk/rkward/rkward/windows/rkwindowcatcher.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Sep 7 14:24:46 UTC 2010


Revision: 3004
          http://rkward.svn.sourceforge.net/rkward/?rev=3004&view=rev
Author:   tfry
Date:     2010-09-07 14:24:45 +0000 (Tue, 07 Sep 2010)

Log Message:
-----------
Fix an assert

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkwindowcatcher.cpp

Modified: trunk/rkward/rkward/windows/rkwindowcatcher.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkwindowcatcher.cpp	2010-09-07 10:10:53 UTC (rev 3003)
+++ trunk/rkward/rkward/windows/rkwindowcatcher.cpp	2010-09-07 14:24:45 UTC (rev 3004)
@@ -65,10 +65,10 @@
 void RKWindowCatcher::updateHistory (QStringList params) {
 	RK_TRACE (MISC);
 	RK_ASSERT (params.count () >= 1);
-	RK_ASSERT ((params.count () % 2) == 1)
 
 	int history_length = params[0].toInt ();
 	QStringList labels = params.mid (1, history_length);
+	RK_ASSERT ((params.count () - history_length) % 2) == 1)
 	for (int i = history_length + 1; i < (params.count () - 1); i += 2) {
 		RKCaughtX11Window* window = RKCaughtX11Window::getWindow (params[i].toInt ());
 		if (window) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list