diff --git a/include/form.cpp b/include/form.cpp index b6c205f1a..f6ca70002 100755 --- a/include/form.cpp +++ b/include/form.cpp @@ -2433,9 +2433,12 @@ bool TPrint_section::detail_field_handler(TMask_field& f, KEY k) if (k == K_SPACE) { - TString80 name(_msk->get(F_FONT)); - int size = _msk->get_int(F_SIZE); - repos_fields(name, size); + if (_cur_form && TString(_cur_form->section_mask()).left(2) == "ba") + { + TString80 name(_msk->get(F_FONT)); + int size = _msk->get_int(F_SIZE); + repos_fields(name, size); + } bool consider_sheet_mask = FALSE; 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 if (k == K_SPACE) { - TString80 name(s.mask().get(F_FONT)); - int size = s.mask().get_int(F_SIZE); - repos_fields(name,size); - s.force_update(); + if (_cur_form && TString(_cur_form->section_mask()).left(2) == "ba") + { + TString80 name(s.mask().get(F_FONT)); + int size = s.mask().get_int(F_SIZE); + repos_fields(name,size); + s.force_update(); + } } return TRUE;