From 688a8322340c2d7738472270a455fbfe5587a2d2 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Tue, 28 Jul 2009 12:59:52 +0200 Subject: Fix graph attribute parsing buglet * grapher/StapParser.cxx (findTaggedValue): Extract value substring after tag. --- grapher/StapParser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grapher/StapParser.cxx') diff --git a/grapher/StapParser.cxx b/grapher/StapParser.cxx index d70c75b6..47dfbe30 100644 --- a/grapher/StapParser.cxx +++ b/grapher/StapParser.cxx @@ -58,7 +58,7 @@ vector commaSplit(const string& inStr, size_t pos = 0) { size_t found; if ((found = src.find(tag)) != string::npos) - result = src.substr(strlen(tag)); + result = src.substr(found + strlen(tag)); return found; } @@ -152,7 +152,7 @@ vector commaSplit(const string& inStr, size_t pos = 0) shared_ptr gdata = itr->second; string decl; // Hack: scan from the beginning of dataString again - if (findTaggedValue(dataString, "%Title", decl) + if (findTaggedValue(dataString, "%Title:", decl) != string::npos) { gdata->title = decl; -- cgit