summaryrefslogtreecommitdiffstats
path: root/src/desktop-style.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-06-14 15:02:20 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-06-14 15:02:20 +0000
commit9f0c5f6c387b155ad6a864c202eafff27f1280a6 (patch)
treee0cfaa0ac816be73d960e09a8cf006b1751b355b /src/desktop-style.cpp
parentUpdate to experimental r13389 (diff)
parentRemoved original path helper paths pointed by LiamW (diff)
downloadinkscape-9f0c5f6c387b155ad6a864c202eafff27f1280a6.tar.gz
inkscape-9f0c5f6c387b155ad6a864c202eafff27f1280a6.zip
Update to experimental r13402
(bzr r13090.1.82)
Diffstat (limited to 'src/desktop-style.cpp')
-rw-r--r--src/desktop-style.cpp8
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 {