Gli errori, come gli esami, non finiscono mai
Tolto reset dei colori in testo esportato quando ci sono spazi git-svn-id: svn://10.65.10.50/trunk@850 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									bd76a15db8
								
							
						
					
					
						commit
						636db1596d
					
				| @ -459,7 +459,7 @@ const char* TPrintrow::row_codified() const | |||||||
|       } |       } | ||||||
|       last_attr = _attr[i]; |       last_attr = _attr[i]; | ||||||
|     } |     } | ||||||
|     if (_cols[i] != last_color && i < _row.len() - 1) |     if (_cols[i] != last_color && _row[i] > ' ') | ||||||
|     { |     { | ||||||
|       __tmp_string[k++] = '$'; |       __tmp_string[k++] = '$'; | ||||||
|       __tmp_string[k++] = '['; |       __tmp_string[k++] = '['; | ||||||
|  | |||||||
| @ -56,6 +56,8 @@ extern "C" | |||||||
| // vista la mania degli 883, eccoti un po' di concerti di Mozart
 | // vista la mania degli 883, eccoti un po' di concerti di Mozart
 | ||||||
| const long E_ADDLINE = 488L; | const long E_ADDLINE = 488L; | ||||||
| const long E_ADDLINE_ONSCREEN = 467L; | const long E_ADDLINE_ONSCREEN = 467L; | ||||||
|  | static bool in_update; | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| void TViswin::check_menu_item(MENU_TAG item, bool on) | void TViswin::check_menu_item(MENU_TAG item, bool on) | ||||||
| @ -127,8 +129,10 @@ void TViswin::display_link (long y, long x1, long x2, const char *d) | |||||||
|   { |   { | ||||||
|     paint_link (y, x1, x2); |     paint_link (y, x1, x2); | ||||||
|     _link_displayed = TRUE; |     _link_displayed = TRUE; | ||||||
|  |     if (in_update) return; | ||||||
| #if XVT_OS == XVT_OS_WIN   | #if XVT_OS == XVT_OS_WIN   | ||||||
|     xvt_statbar_set(d); |     TString dd(d); if (dd.len() > 40) dd.cut(40); | ||||||
|  |     xvt_statbar_set(dd); | ||||||
| #endif | #endif | ||||||
|     if (_link_button != -1)  |     if (_link_button != -1)  | ||||||
|     { |     { | ||||||
| @ -153,9 +157,13 @@ void TViswin::erase_link (long y, long x1, long x2) | |||||||
|   { |   { | ||||||
|     paint_link (y, x1, x2); |     paint_link (y, x1, x2); | ||||||
|     _link_displayed = FALSE; |     _link_displayed = FALSE; | ||||||
|  |     if (in_update) return; | ||||||
| #if XVT_OS == XVT_OS_WIN  | #if XVT_OS == XVT_OS_WIN  | ||||||
|  |     if (!in_update) | ||||||
|  |     { | ||||||
|       xvt_statbar_set (""); |       xvt_statbar_set (""); | ||||||
|       xvt_statbar_refresh (); |       xvt_statbar_refresh (); | ||||||
|  |     } | ||||||
| #endif | #endif | ||||||
|     if (_link_button != -1)  |     if (_link_button != -1)  | ||||||
|     { |     { | ||||||
| @ -226,7 +234,6 @@ bool TViswin::check_link (TPoint * p) | |||||||
|         strcpy (descr, ttt.get ()); |         strcpy (descr, ttt.get ()); | ||||||
|         strcat (descr, t.get (3)); |         strcat (descr, t.get (3)); | ||||||
|         _linktxt = t.get(3);  |         _linktxt = t.get(3);  | ||||||
|         if (_linktxt.len() > 40) _linktxt.cut(40); |  | ||||||
|         if (_multiple) |         if (_multiple) | ||||||
|         { |         { | ||||||
|           // get all parts of the same color 
 |           // get all parts of the same color 
 | ||||||
| @ -869,6 +876,8 @@ void TViswin::update () | |||||||
|   if (_scrolling) |   if (_scrolling) | ||||||
|     return; |     return; | ||||||
|    |    | ||||||
|  |   in_update = TRUE; | ||||||
|  |    | ||||||
|   erase_point (); |   erase_point (); | ||||||
|   autoscroll (FALSE); |   autoscroll (FALSE); | ||||||
|   set_mode (M_COPY); |   set_mode (M_COPY); | ||||||
| @ -917,6 +926,7 @@ else if (_showbuts) | |||||||
|   autoscroll (TRUE); |   autoscroll (TRUE); | ||||||
|   _need_update = TRUE; |   _need_update = TRUE; | ||||||
|   _need_scroll = none; |   _need_scroll = none; | ||||||
|  |   in_update = FALSE; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void TViswin::abort_print () | void TViswin::abort_print () | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user