瀏覽代碼

* fixed setting of compiling_current

git-svn-id: trunk@6630 -
peter 18 年之前
父節點
當前提交
89ad4a083c
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      compiler/verbose.pas

+ 3 - 2
compiler/verbose.pas

@@ -403,8 +403,9 @@ var
              lastfileidx:=0;
            lastmoduleidx:=module.unit_index;
          end;
-        if assigned(module) then
-          status.compiling_current:=(compiling_module.state in [ms_compile,ms_second_compile]);
+        status.compiling_current:=assigned(compiling_module) and
+                                  (module=compiling_module) and
+                                  (compiling_module.state in [ms_compile,ms_second_compile]);
       end;