diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-07-25 16:00:02 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-08-02 21:26:28 +0000 |
| commit | 8330e69bbb618cf8cdf87781d6252e3e3f2b4bd6 (patch) | |
| tree | cbcd0ada66021cb929e8e6e0c6a0bf382e52050f /src/desktop-style.cpp | |
| parent | Adding font size scale (diff) | |
| download | inkscape-8330e69bbb618cf8cdf87781d6252e3e3f2b4bd6.tar.gz inkscape-8330e69bbb618cf8cdf87781d6252e3e3f2b4bd6.zip | |
Stop worinig with units switch to px. Keep discussion opengit add .git add .
Diffstat (limited to '')
| -rw-r--r-- | src/desktop-style.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index 6c8095d53..ee8a96c4e 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -1066,14 +1066,12 @@ objects_query_fontnumbers (const std::vector<SPItem*> &objects, SPStyle *style_r // Quick way of getting document scale. Should be same as: // item->document->getDocumentScale().Affine().descrim() double doc_scale = Geom::Affine(item->i2dt_affine()).descrim(); - double dummy = style->font_size.computed * doc_scale; if (!std::isnan(dummy)) { size += dummy; /// \todo FIXME: we assume non-% units here } else { no_size++; } - if (style->letter_spacing.normal) { if (!different && (letterspacing_prev == 0 || letterspacing_prev == letterspacing)) { letterspacing_normal = true; @@ -1115,8 +1113,7 @@ objects_query_fontnumbers (const std::vector<SPItem*> &objects, SPStyle *style_r lineheight_normal = false; lineheight += lineheight_current; } else { - // Always 'px' internally - lineheight_current = style->line_height.computed; + lineheight_current = style->line_height.value; lineheight_unit_current = style->line_height.unit; lineheight_unit_absolute = true; lineheight_normal = false; |
