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:
		
							parent
							
								
									45da7bd5cd
								
							
						
					
					
						commit
						5186ac4a31
					
				| @ -2433,9 +2433,12 @@ bool TPrint_section::detail_field_handler(TMask_field& f, KEY k) | |||||||
|   if (k == K_SPACE) |   if (k == K_SPACE) | ||||||
|   {  |   {  | ||||||
|      |      | ||||||
|  |     if (_cur_form && TString(_cur_form->section_mask()).left(2) == "ba") | ||||||
|  |     { | ||||||
|       TString80 name(_msk->get(F_FONT)); |       TString80 name(_msk->get(F_FONT)); | ||||||
|       int       size = _msk->get_int(F_SIZE); |       int       size = _msk->get_int(F_SIZE); | ||||||
|       repos_fields(name, 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
 | ||||||
| @ -2708,12 +2711,15 @@ bool TPrint_section::detail_field_notify (TSheet_field& s, int r, KEY k) | |||||||
|   }  |   }  | ||||||
|   else |   else | ||||||
|   if (k == K_SPACE) |   if (k == K_SPACE) | ||||||
|  |   { | ||||||
|  |     if (_cur_form && TString(_cur_form->section_mask()).left(2) == "ba") | ||||||
|     { |     { | ||||||
|       TString80 name(s.mask().get(F_FONT)); |       TString80 name(s.mask().get(F_FONT)); | ||||||
|       int       size = s.mask().get_int(F_SIZE); |       int       size = s.mask().get_int(F_SIZE); | ||||||
|       repos_fields(name,size);   |       repos_fields(name,size);   | ||||||
|       s.force_update(); |       s.force_update(); | ||||||
|     } |     } | ||||||
|  |   } | ||||||
|    |    | ||||||
|   return TRUE; |   return TRUE; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user