We rely on OnDragOver checking for valid source controls. So, add a default insertion text for situations in which all typecastings fail. This text should never be visible.

This commit is contained in:
Ansgar Becker
2007-07-02 06:09:07 +00:00
parent 5cbebfe42c
commit 7d8bd255ff

View File

@@ -4129,6 +4129,7 @@ begin
// dropping a TTreeNode into the query-memo
SynMemoQuery.UndoList.AddGroupBreak;
src := Source as TControl;
Text := 'Error: Unspecified source control in drag''n drop operation!';
// Check for allowed controls as source has already
// been performed in OnDragOver. So, only do typecasting here.
if src is TTreeView then