LCL: small treeview code simplification by Flávio Etrusco, bug #19859

git-svn-id: trunk@31847 -
This commit is contained in:
maxim 2011-08-01 21:05:02 +00:00
parent 48f40ebb52
commit e705d42b04

View File

@ -1360,7 +1360,7 @@ var
OldOnChange: TTVChangedEvent;
begin
if (Destination=nil)
and (Mode in [naAddChild,naAddChildFirst,naInsert,naInsertBehind]) then
and not(Mode in [naAdd,naAddFirst]) then
TreeNodeError('TTreeNode.MoveTo Destination=nil');
if Mode=naInsertBehind then begin
// convert naInsertBehind