mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 06:19:47 +02:00
fixed hanging lazarus, if non-numeric column width was entered (issue #1343)
git-svn-id: trunk@7970 -
This commit is contained in:
parent
707f5119bd
commit
a3bb9a9d74
@ -288,8 +288,9 @@ begin
|
||||
try
|
||||
ListColumn.Width := StrToInt(WidthEdit.Caption);
|
||||
except
|
||||
raise Exception.Create('Invalid numeric Value');
|
||||
WidthEdit.Caption := '0';
|
||||
showmessage('Invalid numeric Value');
|
||||
// revert to previous value
|
||||
WidthEdit.Caption := IntToStr(ListColumn.Width);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user