浏览代码

* Correct indentation of generated code in case of With

git-svn-id: trunk@34469 -
michael 9 年之前
父节点
当前提交
1d67fbc2b7
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/fcl-db/src/codegen/fpddpopcode.pp

+ 3 - 1
packages/fcl-db/src/codegen/fpddpopcode.pp

@@ -371,7 +371,9 @@ begin
     If DoSequence(S) then
       CreateSequenceCode(S,Lines);
     end;
+
   If (dcoProcedurePerTable in Options) then
+
     EndProcedure(Lines);
 end;
 
@@ -396,7 +398,7 @@ begin
   If (dcoUseWith in Options) then
      begin
      AddLine('end;',Lines);
-     Indent;
+     Undent;
      end;
 end;