Revision: 963
http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=963&view=rev
Author: zouzou123gen
Date: 2008-01-09 06:26:12 -0800 (Wed, 09 Jan 2008)
Log Message:
-----------
fix active tab moves
Modified Paths:
--------------
dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp
===================================================================
--- dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp 2008-01-08 22:39:07 UTC (rev 962)
+++ dcplusplus/trunk/smartwin/source/widgets/WidgetTabView.cpp 2008-01-09 14:26:12 UTC (rev 963)
@@ -310,11 +310,7 @@
tab->addPage(cutTitle(ti->w->getText()), dropPos, reinterpret_cast<LPARAM>(ti), image);
- // in case the active tab was moved
- if(dragging == active)
- active = dropPos;
- else if(dropPos == active)
- active = dragging;
+ active = tab->getSelectedIndex();
layout();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|