Browse Source

* properly initialise graphresult when setgraphmode is called directly
(patch by Nikolay Nikolov, mantis #16798)

git-svn-id: trunk@15485 -

Jonas Maebe 15 years ago
parent
commit
469106629c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/graph/src/inc/modes.inc

+ 1 - 0
packages/graph/src/inc/modes.inc

@@ -549,6 +549,7 @@ end;
           _GraphResult := grInvalidMode;
           _GraphResult := grInvalidMode;
           exit;
           exit;
         end;
         end;
+      _GraphResult := grOk;
       modeinfo^.InitMode;
       modeinfo^.InitMode;
       if _GraphResult <> grOk then
       if _GraphResult <> grOk then
         begin
         begin