fixed hanging lazarus, if non-numeric column width was entered (issue #1343)

git-svn-id: trunk@7970 -
This commit is contained in:
vincents 2005-10-16 18:43:47 +00:00
parent 707f5119bd
commit a3bb9a9d74

View File

@ -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;