diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-02-20 12:06:07 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-02-20 12:06:07 +0000 |
| commit | 212bb7b04ce7443e2070fb71e738abdffe738bd8 (patch) | |
| tree | b3f0680bab1d90e4099fcd6f255d4a4b4ab6d259 | |
| parent | Clarify meaning of line spacing. (diff) | |
| download | inkscape-212bb7b04ce7443e2070fb71e738abdffe738bd8.tar.gz inkscape-212bb7b04ce7443e2070fb71e738abdffe738bd8.zip | |
Font size in status bar should use unit from text units preference. Patch from Tobias Ellinghaus.
(bzr r14662)
| -rw-r--r-- | src/sp-text.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp index c7dfdd694..afbe0b147 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -367,8 +367,11 @@ gchar* SPText::description() const { char *n = xml_quote_strdup( style->font_family.value ); + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + int unit = prefs->getInt("/options/font/unitType", SP_CSS_UNIT_PT); Inkscape::Util::Quantity q = Inkscape::Util::Quantity(style->font_size.computed, "px"); - GString *xs = g_string_new(q.string(SP_ACTIVE_DESKTOP->getNamedView()->display_units).c_str()); + q.quantity *= this->i2doc_affine().descrim(); + GString *xs = g_string_new(q.string(sp_style_get_css_unit_string(unit)).c_str()); char const *trunc = ""; Inkscape::Text::Layout const *layout = te_get_layout((SPItem *) this); |
