From: petr000 Date: Fri, 29 Jul 2011 15:00:42 +0000 (+0200) Subject: The first state of automaton and subautomaton is now printed only once into the outpu... X-Git-Url: https://rtime.felk.cvut.cz/gitweb/boost-statechart-viewer.git/commitdiff_plain/d4f47e4d311817bb43275ccb02d6520823a7cfa3?ds=sidebyside The first state of automaton and subautomaton is now printed only once into the output file. --- diff --git a/src/iooper.h b/src/iooper.h index 4567193..f85ed64 100644 --- a/src/iooper.h +++ b/src/iooper.h @@ -126,13 +126,17 @@ class IO_operations if(ctx.compare(0,context.length(),context)==0 && context.length()==ctx.length()) { str = cut_namespaces(state.substr(0,pos1)); - filestr<::iterator i = nstates.begin();i!=nstates.end();i++) { @@ -177,13 +182,17 @@ class IO_operations if(ctx.compare(0,context.length(),context)==0 && context.length()==ctx.length()) { str = cut_namespaces(state.substr(0,pos1)); - filestr<::iterator i = transitions.begin();i!=transitions.end();i++) // write all transitions { params = *i; - pos1 = params.find(","); - state = cut_namespaces(params.substr(0,pos1)); - filestr<"; - pos2 = params.rfind(","); - dest = cut_namespaces(params.substr(pos2+1)); - filestr<"; + pos2 = params.rfind(","); + dest = cut_namespaces(params.substr(pos2+1)); + filestr<