Corretta la richiesta del font-name e font-size dalla maschera solo

se si tratta di editor base.


git-svn-id: svn://10.65.10.50/trunk@2919 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1996-05-28 09:41:18 +00:00
parent 45da7bd5cd
commit 5186ac4a31

View File

@ -2433,9 +2433,12 @@ bool TPrint_section::detail_field_handler(TMask_field& f, KEY k)
if (k == K_SPACE) if (k == K_SPACE)
{ {
TString80 name(_msk->get(F_FONT)); if (_cur_form && TString(_cur_form->section_mask()).left(2) == "ba")
int size = _msk->get_int(F_SIZE); {
repos_fields(name, size); TString80 name(_msk->get(F_FONT));
int size = _msk->get_int(F_SIZE);
repos_fields(name, size);
}
bool consider_sheet_mask = FALSE; bool consider_sheet_mask = FALSE;
if (f.mask().is_running()) // Se la maschera di editing dello sheet e' running if (f.mask().is_running()) // Se la maschera di editing dello sheet e' running
@ -2709,10 +2712,13 @@ bool TPrint_section::detail_field_notify (TSheet_field& s, int r, KEY k)
else else
if (k == K_SPACE) if (k == K_SPACE)
{ {
TString80 name(s.mask().get(F_FONT)); if (_cur_form && TString(_cur_form->section_mask()).left(2) == "ba")
int size = s.mask().get_int(F_SIZE); {
repos_fields(name,size); TString80 name(s.mask().get(F_FONT));
s.force_update(); int size = s.mask().get_int(F_SIZE);
repos_fields(name,size);
s.force_update();
}
} }
return TRUE; return TRUE;