From b3b2c2aa220b4906ecfa091f63153e1567f1b048 Mon Sep 17 00:00:00 2001 From: inoussa Date: Sat, 3 May 2014 16:57:05 +0000 Subject: [PATCH] Do not delete still referenced objects. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2998 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- wst/trunk/type_lib_edtr/edit_helper.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wst/trunk/type_lib_edtr/edit_helper.pas b/wst/trunk/type_lib_edtr/edit_helper.pas index 0af12e604..515977ecf 100644 --- a/wst/trunk/type_lib_edtr/edit_helper.pas +++ b/wst/trunk/type_lib_edtr/edit_helper.pas @@ -886,7 +886,7 @@ var begin if (AObject = nil) then exit; - if (AObject.RefCount > 1) then + if (AObject.RefCount > 0) then raise EWstEditException.CreateFmt(s_CantDeleteStillReferencedObject,[AObject.Name]); sct := ASymbolTable.CurrentModule.InterfaceSection; sct.Declarations.Extract(AObject);