diff options
| author | Shlomi Fish <shlomif@shlomifish.org> | 2016-10-02 12:26:27 +0000 |
|---|---|---|
| committer | Shlomi Fish <shlomif@shlomifish.org> | 2016-10-02 12:26:27 +0000 |
| commit | 086347db66cff034f3e1fdce59a89156c49b5b95 (patch) | |
| tree | 7626f05c7843030de11dc2c9d93612707774326d /src/widgets/text-toolbar.cpp | |
| parent | Merged. (diff) | |
| download | inkscape-086347db66cff034f3e1fdce59a89156c49b5b95.tar.gz inkscape-086347db66cff034f3e1fdce59a89156c49b5b95.zip | |
Extract a function - is_query_style_updateable.
(bzr r15100.1.29)
Diffstat (limited to 'src/widgets/text-toolbar.cpp')
| -rw-r--r-- | src/widgets/text-toolbar.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/text-toolbar.cpp b/src/widgets/text-toolbar.cpp index 4b22c8d7e..610d743a0 100644 --- a/src/widgets/text-toolbar.cpp +++ b/src/widgets/text-toolbar.cpp @@ -41,6 +41,7 @@ #include "ink-radio-action.h" #include "ink-toggle-action.h" #include "widgets/ink-comboboxentry-action.h" +#include "widgets/style-utils.h" #include "inkscape.h" #include "selection-chemistry.h" #include "sp-flowtext.h" @@ -304,7 +305,7 @@ static void sp_text_script_changed( InkToggleAction* act, GObject *tbl ) bool setSuper = false; bool setSub = false; - if(result_baseline == QUERY_STYLE_NOTHING || result_baseline == QUERY_STYLE_MULTIPLE_DIFFERENT ) { + if (Inkscape::is_query_style_updateable(result_baseline)) { // If not set or mixed, turn on superscript or subscript if( prop == 0 ) { setSuper = true; |
