diff --git a/po/POTFILES.src.in b/po/POTFILES.src.in index 60cb9cd47f21f856424fbc96de4fc5f73d8d4390..4465cb0a9758d08b7358d1424326ab2e34ce6562 100644 --- a/po/POTFILES.src.in +++ b/po/POTFILES.src.in @@ -44,7 +44,6 @@ ${_build_dir}/share/templates/templates.h ../src/colors/spaces/components.cpp ../src/context-fns.cpp ../src/desktop-events.cpp -../src/desktop-style.cpp ../src/desktop.cpp ../src/display/control/canvas-item-text.cpp ../src/display/control/ctrl-handle-manager.cpp diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index 74008e627f889fef75e26a5a4ef0c1fc126070cf..5b2cb8cf42ddd0500a03e7c6eea2c2f496b786ed 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -229,21 +229,17 @@ sp_desktop_set_style(Inkscape::ObjectSet *set, SPDesktop *desktop, SPCSSAttr *cs auto itemlist = set->items(); for (auto i = itemlist.begin(); i!= itemlist.end(); ++i) { SPItem *item = *i; - if (item->isLocked()) { - // If locked, don't apply style - desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Locked object(s) cannot be modified.")); - } else { - // If not text, don't apply text attributes (can a group have text attributes? Yes! FIXME) - if (isTextualItem(item)) { - // 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(item, css, true); - } else { - sp_desktop_apply_css_recursive(item, css_no_text, true); + + // If not text, don't apply text attributes (can a group have text attributes? Yes! FIXME) + if (isTextualItem(item)) { + // 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(item, css, true); + } else { + sp_desktop_apply_css_recursive(item, css_no_text, true); } } sp_repr_css_attr_unref(css_no_text);