Commit f73f407c authored by Alex Valavanis's avatar Alex Valavanis

TextToolbar: Fix superscript/subscript handling

parent a969077b
Pipeline #65185034 passed with stages
in 117 minutes and 23 seconds
......@@ -970,7 +970,7 @@ TextToolbar::script_changed(Gtk::ToggleToolButton *btn)
// Called by Superscript or Subscript button?
auto name = btn->get_name();
gint prop = (strcmp(name.c_str(), "TextSuperscriptAction") == 0) ? 0 : 1;
gint prop = (btn == _superscript_item) ? 0 : 1;
#ifdef DEBUG_TEXT
std::cout << "TextToolbar::script_changed: " << prop << std::endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment