]> granicus.if.org Git - graphviz/commitdiff
minor code and comment cleanup
authorglenlow <devnull@localhost>
Wed, 2 Jul 2008 07:20:01 +0000 (07:20 +0000)
committerglenlow <devnull@localhost>
Wed, 2 Jul 2008 07:20:01 +0000 (07:20 +0000)
windows/GraphForm.cs
windows/PathWatcher.cs

index ebf31b22a49d667cab7decde0c2ff0bfd033d04f..13d7794cb4afcc34fa3ccd10b9dd9faf13869b00 100755 (executable)
@@ -55,8 +55,6 @@ namespace Graphviz
                                {\r
                                        /* replace old graph with new and rerender */\r
                                        Graph newGraph = new Graph(((PathWatcher)sender).Watched);\r
-                                       if (newGraph != null)\r
-                                       {\r
                                                ((IDisposable)_graph).Dispose();\r
                                                _graph = newGraph;\r
                                                _graph.Arguments["layout"] = "dot";\r
@@ -65,7 +63,6 @@ namespace Graphviz
                                                if (Changed != null)\r
                                                        Changed(this, EventArgs.Empty);\r
                                        }\r
-                               }\r
                                catch (Win32Exception exception)\r
                                {\r
                                        /* if another process is holding on to the graph, try opening again later */\r
index d28555408d6811ab134610db4b897a305969b06b..7a23102c5bcdd4203bf5e397bc860d86c9480c05 100755 (executable)
@@ -1,3 +1,19 @@
+/* $Id$ $Revision$ */\r
+/* vim:set shiftwidth=4 ts=8: */\r
+\r
+/**********************************************************\r
+*      This software is part of the graphviz package      *\r
+*                http://www.graphviz.org/                 *\r
+*                                                         *\r
+*            Copyright (c) 1994-2008 AT&T Corp.           *\r
+*                and is licensed under the                *\r
+*            Common Public License, Version 1.0           *\r
+*                      by AT&T Corp.                      *\r
+*                                                         *\r
+*        Information and Software Systems Research        *\r
+*              AT&T Research, Florham Park NJ             *\r
+**********************************************************/\r
+\r
 using System;\r
 using System.ComponentModel;\r
 using System.IO;\r