Silence AV bug in SynEdit

This commit is contained in:
Ansgar Becker
2009-02-08 21:05:16 +00:00
parent 63b8925ca0
commit 0d2031e2eb

View File

@@ -2725,8 +2725,10 @@ begin
if m.SelAvail and (m.BlockBegin.Line = m.BlockEnd.Line)
then
FindDialogQuery.FindText := m.SelText
else
else try // GetWordAtRowCol throws an AV when no text is present
FindDialogQuery.FindText := m.GetWordAtRowCol(m.CaretXY);
except
end;
end;