X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Fmathml_editor%2Fsrc%2FTPushParser.cc;h=0c96fe43968c94be52a1fdcffac385012d683ebb;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=7a8356f7d87ad01960afa9f1845643849fe44932;hpb=e4fed32b1519f436de9ca84c3c9c67e1530808b6;p=helm.git diff --git a/helm/DEVEL/mathml_editor/src/TPushParser.cc b/helm/DEVEL/mathml_editor/src/TPushParser.cc index 7a8356f7d..0c96fe439 100644 --- a/helm/DEVEL/mathml_editor/src/TPushParser.cc +++ b/helm/DEVEL/mathml_editor/src/TPushParser.cc @@ -23,6 +23,8 @@ * or send an email to */ +#include + #include "ALogger.hh" #include "TPushParser.hh" #include "AMathMLFactory.hh" @@ -55,9 +57,10 @@ TPushParser::reset() { nextId = 1; if (cursor.parent()) cursor.remove(); + cursor["val"] = ""; doc.reset(); doc.root().append(cursor); - if (factory) factory->documentModified(doc); + if (factory && !frozen()) factory->documentModified(doc); } TNode