diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2019-06-07 11:30:57 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2019-06-07 11:30:57 +0000 |
| commit | f73f407cbd787a0754df8d1a474cc977eda5069d (patch) | |
| tree | b4582c636c21ad7ec8f69b157bfa7f0f2699455a /src | |
| parent | ComboBoxEntryToolItem: Add tooltip support (Fix issue #290) (diff) | |
| download | inkscape-f73f407cbd787a0754df8d1a474cc977eda5069d.tar.gz inkscape-f73f407cbd787a0754df8d1a474cc977eda5069d.zip | |
TextToolbar: Fix superscript/subscript handling
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/toolbar/text-toolbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/toolbar/text-toolbar.cpp b/src/ui/toolbar/text-toolbar.cpp index 8e747cb39..a8604778a 100644 --- a/src/ui/toolbar/text-toolbar.cpp +++ b/src/ui/toolbar/text-toolbar.cpp @@ -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; |
