Browse Source

Bug 从标准清单添加节点,会添加一条ID为0的清单

MaiXinRong 9 years ago
parent
commit
71eda3de68
1 changed files with 2 additions and 0 deletions
  1. 2 0
      DataModules/BillsCompileDm.pas

+ 2 - 0
DataModules/BillsCompileDm.pas

@@ -530,6 +530,8 @@ var
 begin
   iNextSiblingID := GetNextSiblingID(AParentNode, ANode);
   iID := ANode.Rec.ValueByName('StaticID').AsInteger;
+  if iID = 0 then
+    iID := -1;
   if Assigned(AParentNode) then
     Result := BillsCompileTree.AddNode(AParentNode.ID, iNextSiblingID, iID)
   else