]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/commitdiff
Correction of an error in finding transitions. End of the destination was cut off.
authorpetr000 <silhavik.p@gmail.com>
Sun, 10 Apr 2011 20:17:05 +0000 (22:17 +0200)
committerpetr000 <silhavik.p@gmail.com>
Sun, 10 Apr 2011 20:17:05 +0000 (22:17 +0200)
src/stringoper.h

index 81a227dda8f1fdc685a9ae6d1a93d7a0057d4e4c..b3a8c943cad3324691de18884c3b7bb0861ea231 100644 (file)
@@ -320,7 +320,8 @@ class StringDecl
                                line = get_next_base(line);
                        }
                }
-               return trans.substr(0,trans.length()-1);        
+               if(trans[trans.length()-1]==';') return trans.substr(0,trans.length()-1);
+               else return trans;      
        }
        bool find_events(const CXXRecordDecl *cRecDecl, std::string line) // test if the decl is decl of event
        {