]> granicus.if.org Git - graphviz/commitdiff
Put in call to reset line numbers before parsing
authorerg <devnull@localhost>
Tue, 22 Feb 2011 01:39:37 +0000 (01:39 +0000)
committererg <devnull@localhost>
Tue, 22 Feb 2011 01:39:37 +0000 (01:39 +0000)
cmd/gvedit/csettings.cpp

index a775172f4b79ab4c18ab4d1e3211032f0ba5d7dc..9e7b114f8acc3cf18f4f489f439121e7eb2aae8e 100644 (file)
@@ -163,6 +163,10 @@ bool CFrmSettings::createLayout()
     int _pos=graphData.indexOf(tr("{"));
     graphData.replace(_pos,1,"{"+WIDGET(QTextEdit,teAttributes)->toPlainText());
 
+      /* Reset line number and file name;
+       * If known, might want to use real name
+       */
+    agsetfile("<gvedit>");
     graph=agread_usergets(reinterpret_cast<FILE*>(this),(gets_f)graph_reader);
     if(!graph)
        return false;