regex_replace invalidates iterators
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user