浏览代码

批量插入子、后项,部位,复制粘贴后,多增一空列。

MaiXinRong 9 年之前
父节点
当前提交
bb383117ab
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Forms/BatchInsertBillsFrm.pas

+ 2 - 2
Forms/BatchInsertBillsFrm.pas

@@ -199,8 +199,8 @@ end;
 procedure TBatchInsertBillsForm.SetRowAndColumnCount(AGrid: TZJGrid;
   ASourSheet: TZjSheet);
 begin
-  if AGrid.ColCount < ASourSheet.ColCount + AGrid.CurCol then
-    AGrid.ColCount := ASourSheet.ColCount + AGrid.CurCol;
+  if AGrid.ColCount < ASourSheet.ColCount + AGrid.CurCol + 1 then
+    AGrid.ColCount := ASourSheet.ColCount + AGrid.CurCol + 1;
   if AGrid.RowCount < ASourSheet.RowCount + AGrid.CurRow + 1 then
     AGrid.RowCount := ASourSheet.RowCount + AGrid.CurRow + 1;
 end;