Author: mordante
Date: Sun May 18 07:50:12 2008
New Revision: 26680
URL: http://svn.gna.org/viewcvs/wesnoth?rev=26680&view=rev
Log:
Make get_active() more like the other get_active()'s
Modified:
trunk/src/gui/widgets/label.hpp
Modified: trunk/src/gui/widgets/label.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/label.hpp?rev=26680&r1=26679&r2=26680&view=diff
==============================================================================
--- trunk/src/gui/widgets/label.hpp (original)
+++ trunk/src/gui/widgets/label.hpp Sun May 18 07:50:12 2008
@@ -30,7 +30,7 @@
}
void set_active(const bool active) { set_state(active ? ENABLED :
DISABLED); };
- bool get_active() const { return state_ == ENABLED; }
+ bool get_active() const { return state_ != DISABLED; }
unsigned get_state() const { return state_; }
private:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits