diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-16 21:32:16 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-16 21:32:16 +0000 |
| commit | dc4161332ffa97e75b5d2deecf2a47eb62e38c8f (patch) | |
| tree | 2ad76f2101e86efeaf07f4aea62c84c3e70e45da /src/ui/clipboard.cpp | |
| parent | Some improvements to redraw (diff) | |
| parent | Add label (diff) | |
| download | inkscape-dc4161332ffa97e75b5d2deecf2a47eb62e38c8f.tar.gz inkscape-dc4161332ffa97e75b5d2deecf2a47eb62e38c8f.zip | |
Merge branch 'master' into powerpencilII
Diffstat (limited to 'src/ui/clipboard.cpp')
| -rw-r--r-- | src/ui/clipboard.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index dbeee644c..118d7ae1f 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -1049,9 +1049,12 @@ bool ClipboardManagerImpl::_pasteText(SPDesktop *desktop) SPCSSAttr *css = take_style_from_item(tc->text); for (int i = 0; i < nr_blocks; ++i) { - gchar const *w = sp_repr_css_property(css, "font-size", "40px"); - if (w) + gchar const *w = sp_repr_css_property(css, "font-size", "0px"); + + // Don't set font-size if it wasn't set. + if (w && strcmp(w, "0px") != 0) { sp_repr_css_set_property(te_selected_style[i], "font-size", w); + } } for (int i = 0; i < text.length(); ++i) |
