Corretto autocambiamento della ditta

git-svn-id: svn://10.65.10.50/trunk@1111 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
pirro 1995-03-13 11:48:49 +00:00
parent 8c143f6348
commit 65f26fccde

View File

@ -1,4 +1,4 @@
// $Id: maskfld.cpp,v 1.82 1995-02-28 10:30:44 pirro Exp $
// $Id: maskfld.cpp,v 1.83 1995-03-13 11:48:49 pirro Exp $
#include <xvt.h>
#include <applicat.h>
@ -2598,7 +2598,7 @@ bool TReal_field::on_key(KEY key)
if (_flags.firm)
{
const long f = atol(n);
if (prefhndl->exist(f))
if (f > 0 && prefhndl->exist(f))
main_app().set_firm(f);
}
}