From: ishmal Date: Sat, 2 Dec 2006 15:32:37 +0000 (+0000) Subject: allow 0-length properties X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8eb1790ab4546ca69fd6f95a9ab5c36c9e7defad;p=inkscape.git allow 0-length properties --- diff --git a/build.xml b/build.xml index cbebbe7b8..c8ea0c17f 100644 --- a/build.xml +++ b/build.xml @@ -7,7 +7,9 @@ - + + + @@ -88,7 +90,7 @@ - @@ -197,7 +199,7 @@ - @@ -214,17 +216,17 @@ - --include-dir=${src} - diff --git a/buildtool.cpp b/buildtool.cpp index e61caf9c7..747e9577e 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -7945,8 +7945,9 @@ bool Make::parsePropertyFile(const String &fileName, return false; } val = s.substr(p); - if (key.size()==0 || val.size()==0) + if (key.size()==0) continue; + //allow property to be set, even if val="" //trace("key:'%s' val:'%s'", key.c_str(), val.c_str()); //See if we wanted to overload this property @@ -7991,10 +7992,8 @@ bool Make::parseProperty(Element *elem) { if (!getAttribute(elem, "location", val)) return false; - if (val.size() > 0) - { - properties[attrVal] = val; - } + //let the property exist, even if not defined + properties[attrVal] = val; } //See if we wanted to overload this property std::map::iterator iter =