Don't lookup node texts in a endless recursion loop
authorsapier <Sapier at GMX dot net>
Tue, 7 Jan 2014 10:15:24 +0000 (11:15 +0100)
committersapier <Sapier at GMX dot net>
Tue, 7 Jan 2014 10:15:24 +0000 (11:15 +0100)
src/nodemetadata.h

index ce2c9e6d9f0e9aaf81309f8c567a03d62a26dd26..710270502f76ab473b99aca4fdcb0e551d95b73e 100644 (file)
@@ -55,7 +55,7 @@ public:
                i = m_stringvars.find(name);
                if(i == m_stringvars.end())
                        return "";
-               return resolveString(i->second);
+               return i->second;
        }
        void setString(const std::string &name, const std::string &var)
        {
@@ -68,7 +68,7 @@ public:
        std::string resolveString(const std::string &str) const
        {
                if(str.substr(0,2) == "${" && str[str.length()-1] == '}')
-                       return resolveString(getString(str.substr(2,str.length()-3)));
+                       return getString(str.substr(2,str.length()-3));
                return str;
        }
        std::map<std::string, std::string> getStrings() const