From: ishmal Date: Wed, 7 Feb 2007 13:07:16 +0000 (+0000) Subject: Fix parsing of bools X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f52d2fdccd375423dd9b3397990828f27c1b6e72;p=inkscape.git Fix parsing of bools --- diff --git a/buildtool.cpp b/buildtool.cpp index f78bf8ee8..e2c28b4c0 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -4,7 +4,7 @@ * Authors: * Bob Jamison * - * Copyright (C) 2006 Bob Jamison + * Copyright (C) 2006-2007 Bob Jamison * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -6500,7 +6500,7 @@ public: return false; if (!parent.getAttribute(elem, "strip", s)) return false; - if (!getBool(s, doStrip)) + if (s.size()>0 && !getBool(s, doStrip)) return false; if (!parent.getAttribute(elem, "symfile", symFileName)) return false; @@ -6764,7 +6764,7 @@ public: return false; if (!parent.getAttribute(elem, "owndir", s)) return false; - if (!getBool(s, owndir)) + if (s.size()>0 && !getBool(s, owndir)) return false; std::vector children = elem->getChildren(); @@ -7521,7 +7521,7 @@ public: * */ virtual String version() - { return "BuildTool v0.6, 2006 Bob Jamison"; } + { return "BuildTool v0.6.1, 2006 Bob Jamison"; } /** * Overload a