IDE: object inspector: show error if integer out of range

git-svn-id: trunk@45620 -
This commit is contained in:
mattias 2014-06-23 16:23:51 +00:00
parent bf29568adb
commit e09f10816f

View File

@ -27,8 +27,8 @@ unit PropEdits;
interface
uses
Classes, TypInfo, SysUtils, types, Forms, Controls, LCLProc, GraphType,
FPCAdds, // for StrToQWord in older fpc versions
Classes, TypInfo, SysUtils, types, RtlConsts, Forms, Controls, LCLProc,
GraphType, FPCAdds, // for StrToQWord in older fpc versions
StringHashList, ButtonPanel, Graphics, StdCtrls, Buttons, Menus, LCLType,
ExtCtrls, ComCtrls, LCLIntf, Dialogs, EditBtn, PropertyStorage, Grids, ValEdit,
FileUtil, FileCtrl, ObjInspStrConsts, PropEditUtils,
@ -3110,8 +3110,7 @@ procedure TIntegerPropertyEditor.SetValue(const NewValue: AnsiString);
procedure Error(const Args: array of const);
begin
// XXX
{raise EPropertyError.CreateResFmt(@SOutOfRange, Args);}
raise EPropertyError.CreateResFmt(@SOutOfRange, Args);
end;
var