From b93c05826018abdeff80fe28be1a9fe9901ff3cf Mon Sep 17 00:00:00 2001 From: bulia byak Date: Fri, 18 Apr 2008 03:25:42 +0000 Subject: allow inx to suppress live preview checkbox (bzr r5469) --- src/extension/effect.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/extension/effect.cpp') diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index b4eeb9c9a..2010e253a 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -47,6 +47,7 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation * bool hidden = false; no_doc = false; + no_live_preview = false; if (repr != NULL) { @@ -55,6 +56,9 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation * if (child->attribute("needs-document") && !strcmp(child->attribute("needs-document"), "false")) { no_doc = true; } + if (child->attribute("needs-live-preview") && !strcmp(child->attribute("needs-live-preview"), "false")) { + no_live_preview = true; + } for (Inkscape::XML::Node *effect_child = sp_repr_children(child); effect_child != NULL; effect_child = effect_child->next()) { if (!strcmp(effect_child->name(), "effects-menu")) { // printf("Found local effects menu in %s\n", this->get_name()); -- cgit v1.2.3