diff options
| author | Josh Andler <scislac@gmail.com> | 2009-09-23 20:27:22 +0000 |
|---|---|---|
| committer | scislac <scislac@users.sourceforge.net> | 2009-09-23 20:27:22 +0000 |
| commit | 8ead1fdd38578da4c61ab5295883073f4548c998 (patch) | |
| tree | 81458cf10aed0f8071447758a88c4c6db37e0307 /src/text-context.cpp | |
| parent | Tutorials update. Fixes NaN and overlapping bugs (Bug #409230). (diff) | |
| download | inkscape-8ead1fdd38578da4c61ab5295883073f4548c998.tar.gz inkscape-8ead1fdd38578da4c61ab5295883073f4548c998.zip | |
Fix for 181663 by The Adib. Yay for working Italics button on the toolbar!
(bzr r8641)
Diffstat (limited to 'src/text-context.cpp')
| -rw-r--r-- | src/text-context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text-context.cpp b/src/text-context.cpp index c1986972a..e6f4f083b 100644 --- a/src/text-context.cpp +++ b/src/text-context.cpp @@ -881,10 +881,10 @@ sp_text_context_root_handler(SPEventContext *const event_context, GdkEvent *cons if (MOD__CTRL_ONLY && tc->text) { SPStyle const *style = sp_te_style_at_position(tc->text, std::min(tc->text_sel_start, tc->text_sel_end)); SPCSSAttr *css = sp_repr_css_attr_new(); - if (style->font_style.computed == SP_CSS_FONT_STYLE_NORMAL) - sp_repr_css_set_property(css, "font-style", "italic"); - else + if (style->font_style.computed != SP_CSS_FONT_STYLE_NORMAL) sp_repr_css_set_property(css, "font-style", "normal"); + else + sp_repr_css_set_property(css, "font-style", "italic"); sp_te_apply_style(tc->text, tc->text_sel_start, tc->text_sel_end, css); sp_repr_css_attr_unref(css); sp_document_done(sp_desktop_document(desktop), SP_VERB_CONTEXT_TEXT, |
