Skip to content

Commit

Permalink
Used get_value_bool()
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 11, 2019
1 parent f60edbf commit 0949ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/label_settings.cpp
Expand Up @@ -122,7 +122,7 @@ bool label_settings::execute(display_context& dc) {
}

void label_settings::toggle_category(widget& box, std::string category) {
all_labels[category] = (static_cast<toggle_button&>(box).get_value() != 0);
all_labels[category] = static_cast<toggle_button&>(box).get_value_bool();
}
} // namespace dialogs
} // namespace gui2

0 comments on commit 0949ecf

Please sign in to comment.