mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 20:21:04 +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
|
try
|
||||||
ListColumn.Width := StrToInt(WidthEdit.Caption);
|
ListColumn.Width := StrToInt(WidthEdit.Caption);
|
||||||
except
|
except
|
||||||
raise Exception.Create('Invalid numeric Value');
|
showmessage('Invalid numeric Value');
|
||||||
WidthEdit.Caption := '0';
|
// revert to previous value
|
||||||
|
WidthEdit.Caption := IntToStr(ListColumn.Width);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user