You've already forked lazarus-ccr
* Check FSelectionCount in CopyToClipboard
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1056 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -31927,10 +31927,13 @@ end;
|
|||||||
{$ifndef LCLWin32}
|
{$ifndef LCLWin32}
|
||||||
procedure TCustomVirtualStringTree.CopyToClipBoard;
|
procedure TCustomVirtualStringTree.CopyToClipBoard;
|
||||||
begin
|
begin
|
||||||
MarkCutCopyNodes;
|
if FSelectionCount > 0 then
|
||||||
DoStateChange([tsCopyPending]);
|
begin
|
||||||
Clipboard.AsText := ContentToUTF8(tstCutCopySet, #9);
|
MarkCutCopyNodes;
|
||||||
DoStateChange([], [tsCopyPending]);
|
DoStateChange([tsCopyPending]);
|
||||||
|
Clipboard.AsText := ContentToUTF8(tstCutCopySet, #9);
|
||||||
|
DoStateChange([], [tsCopyPending]);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user