From 4f2b9cc125d6850206385600ef05254b4a40b95b Mon Sep 17 00:00:00 2001 From: mfloryan Date: Thu, 17 Apr 2008 16:14:20 +0000 Subject: [PATCH] A small step towards making the inx files fully XML / schema compliant --- src/extension/effect.cpp | 4 ++-- src/extension/output.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index a45ef0199..b4eeb9c9a 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -52,14 +52,14 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation * for (Inkscape::XML::Node *child = sp_repr_children(repr); child != NULL; child = child->next()) { if (!strcmp(child->name(), "effect")) { - if (child->attribute("needs-document") && !strcmp(child->attribute("needs-document"), "no")) { + if (child->attribute("needs-document") && !strcmp(child->attribute("needs-document"), "false")) { no_doc = 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()); local_effects_menu = sp_repr_children(effect_child); - if (effect_child->attribute("hidden") && !strcmp(effect_child->attribute("hidden"), "yes")) { + if (effect_child->attribute("hidden") && !strcmp(effect_child->attribute("hidden"), "true")) { hidden = true; } } diff --git a/src/extension/output.cpp b/src/extension/output.cpp index 3f8c17fb1..e4a7bc5fc 100644 --- a/src/extension/output.cpp +++ b/src/extension/output.cpp @@ -72,7 +72,7 @@ Output::Output (Inkscape::XML::Node * in_repr, Implementation::Implementation * filetypetooltip = g_strdup(sp_repr_children(child_repr)->content()); } if (!strcmp(chname, "dataloss")) { - if (!strcmp(sp_repr_children(child_repr)->content(), "FALSE")) { + if (!strcmp(sp_repr_children(child_repr)->content(), "false")) { dataloss = FALSE; } } -- 2.30.2