summaryrefslogtreecommitdiff
path: root/src/Fl_Button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Button.cxx')
-rw-r--r--src/Fl_Button.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx
index 147e5cf4d..99e4589b3 100644
--- a/src/Fl_Button.cxx
+++ b/src/Fl_Button.cxx
@@ -60,7 +60,7 @@ int Fl_Button::value(int v) {
*/
void Fl_Button::setonly() { // set this radio button on, turn others off
value(1);
- Fl_Group* g = (Fl_Group*)parent();
+ Fl_Group* g = parent();
Fl_Widget*const* a = g->array();
for (int i = g->children(); i--;) {
Fl_Widget* o = *a++;