LCL: Enclose DebugLns inside IFDEFs.

git-svn-id: trunk@35760 -
This commit is contained in:
juha 2012-03-06 09:46:59 +00:00
parent 23c8d08e0b
commit 5c13f61c77

View File

@ -765,7 +765,9 @@ begin
Exclude(FStates,nsSelected);
if (TV<>nil) and (TV.Selected=Self) then
begin
{$IFDEF TREEVIEW_DEBUG}
DebugLn('TTreeNode.SetSelected: Removing selection from Node (but it does not work): ', Text);
{$ENDIF}
// TV.EndEditing(true); // Done in TV.SetSelection
TV.Selected:=nil;
Assert(TV.Selected<>Self, 'Should not happen');
@ -4126,7 +4128,9 @@ begin
if FSelectedNode = Value then Exit;
if not CanChange(FSelectedNode) then
exit;
{$IFDEF TREEVIEW_DEBUG}
DebugLn('TCustomTreeView.SetSelection: Changing selection for Node: ', Text);
{$ENDIF}
EndEditing(true); // end editing before FSelectedNode change
OldNode := FSelectedNode;
FSelectedNode := Value;