diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2014-06-15 09:08:03 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2014-06-15 09:08:03 +0000 |
| commit | ccacefacda584c206625b7759001d3d8c531cfed (patch) | |
| tree | 8c00cc50f5bb400b62639c06c234d11fa982502b /src/desktop-style.cpp | |
| parent | update to trunk (r13407) (diff) | |
| parent | Allow symbol zooming independent of icon screen size. (diff) | |
| download | inkscape-ccacefacda584c206625b7759001d3d8c531cfed.tar.gz inkscape-ccacefacda584c206625b7759001d3d8c531cfed.zip | |
update to trunk (r13425)
(bzr r13398.1.3)
Diffstat (limited to 'src/desktop-style.cpp')
| -rw-r--r-- | src/desktop-style.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index 37f537cc5..f6347e5c0 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -211,11 +211,17 @@ sp_desktop_set_style(SPDesktop *desktop, SPCSSAttr *css, bool change, bool write for (GSList const *i = desktop->selection->itemList(); i != NULL; i = i->next) { - // If not text, don't apply text attributes (can a group have text attributes?) + // If not text, don't apply text attributes (can a group have text attributes? Yes! FIXME) if ( SP_IS_TEXT(i->data) || SP_IS_FLOWTEXT(i->data) || SP_IS_TSPAN(i->data) || SP_IS_TREF(i->data) || SP_IS_TEXTPATH(i->data) || SP_IS_FLOWDIV(i->data) || SP_IS_FLOWPARA(i->data) || SP_IS_FLOWTSPAN(i->data)) { + // If any font property has changed, then we have written out the font + // properties in longhand and we need to remove the 'font' shorthand. + if( !sp_repr_css_property_is_unset(css, "font-family") ) { + sp_repr_css_unset_property(css, "font"); + } + sp_desktop_apply_css_recursive(SP_OBJECT(i->data), css, true); } else { |
