regex_replace invalidates iterators

This commit is contained in:
WandererFan
2016-07-02 09:00:49 -04:00
committed by wmayer
parent 8ef0aec717
commit 4b784975bb
2 changed files with 6 additions and 4 deletions

View File

@@ -90,7 +90,8 @@ App::DocumentObjectExecReturn *DrawViewSymbol::execute(void)
std::string svg = Symbol.getValue();
const std::vector<std::string>& editText = EditableTexts.getValues();
if (!editText.empty()) {
if (!editText.empty()) {
//TODO: has this ever been run?
boost::regex e1 ("<text.*?freecad:editable=\"(.*?)\".*?<tspan.*?>(.*?)</tspan>");
string::const_iterator begin, end;
begin = svg.begin();