From 5186ac4a310860b49a0642ecfc8ebf73b0facf08 Mon Sep 17 00:00:00 2001 From: angelo Date: Tue, 28 May 1996 09:41:18 +0000 Subject: [PATCH] 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 --- include/form.cpp | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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;