mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 22:20:17 +02:00
DebugManager: fixed crash, if Evaluate Widow was (re-)opened at IDE start-up (restored from last session)
git-svn-id: trunk@25648 -
This commit is contained in:
parent
bb55ccecbd
commit
2ba8bc1ae2
@ -1882,7 +1882,9 @@ var
|
||||
TheDialog: TEvaluateDlg;
|
||||
begin
|
||||
TheDialog := TEvaluateDlg(FDialogs[ddtEvaluate]);
|
||||
if SourceEditorManager.GetActiveSE.SelectionAvailable then
|
||||
if (SourceEditorManager.GetActiveSE <> nil) and
|
||||
SourceEditorManager.GetActiveSE.SelectionAvailable
|
||||
then
|
||||
TheDialog.FindText := SourceEditorManager.GetActiveSE.Selection
|
||||
else
|
||||
TheDialog.FindText := SourceEditorManager.GetActiveSE.GetOperandAtCurrentCaret;
|
||||
|
Loading…
Reference in New Issue
Block a user