[rkward-cvs] SF.net SVN: rkward:[3514] trunk/rkward/rkward/windows/rkworkplace.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Apr 18 11:45:15 UTC 2011


Revision: 3514
          http://rkward.svn.sourceforge.net/rkward/?rev=3514&view=rev
Author:   tfry
Date:     2011-04-18 11:45:15 +0000 (Mon, 18 Apr 2011)

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

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

Modified: trunk/rkward/rkward/windows/rkworkplace.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkworkplace.cpp	2011-04-18 11:37:09 UTC (rev 3513)
+++ trunk/rkward/rkward/windows/rkworkplace.cpp	2011-04-18 11:45:15 UTC (rev 3514)
@@ -190,8 +190,8 @@
 
 	RK_ASSERT (window->isToolWindow ());
 	if ((position < 0) || (position >= TOOL_WINDOW_BAR_COUNT)) {
-		RK_ASSERT (false);		// but could happen for a broken workplace representation
-		position = RKToolWindowList::Nowhere;
+		RK_ASSERT (position == RKToolWindowList::Nowhere);	// should never happen...
+		position = RKToolWindowList::Nowhere;		// ... but let's set this explicitly, in case of a broken workplace representation
 	}
 	if (position == RKToolWindowList::Nowhere) {
 		if (window->tool_window_bar) window->tool_window_bar->removeWidget (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