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++] = '[';
|
||||||
|
@ -334,7 +334,7 @@ int TTextfile::replace(long l, const char* txt, int pos, int len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cnt == pos)
|
if (cnt == pos)
|
||||||
{
|
{
|
||||||
line.overwrite(txt, cnt+skip);
|
line.overwrite(txt, cnt+skip);
|
||||||
_dirty_lines.set(l-_page_start);
|
_dirty_lines.set(l-_page_start);
|
||||||
return cnt;
|
return cnt;
|
||||||
|
@ -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 XVT_OS == XVT_OS_WIN
|
if (in_update) return;
|
||||||
xvt_statbar_set(d);
|
#if XVT_OS == XVT_OS_WIN
|
||||||
|
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 XVT_OS == XVT_OS_WIN
|
if (in_update) return;
|
||||||
xvt_statbar_set ("");
|
#if XVT_OS == XVT_OS_WIN
|
||||||
xvt_statbar_refresh ();
|
if (!in_update)
|
||||||
|
{
|
||||||
|
xvt_statbar_set ("");
|
||||||
|
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
|
||||||
@ -868,7 +875,9 @@ 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);
|
||||||
@ -878,7 +887,7 @@ void TViswin::update ()
|
|||||||
bar ((X_OFFSET-1), rows()-BUTTONROW_SIZE, columns()+1, rows() + 1);
|
bar ((X_OFFSET-1), rows()-BUTTONROW_SIZE, columns()+1, rows() + 1);
|
||||||
}
|
}
|
||||||
if (_need_update)
|
if (_need_update)
|
||||||
{
|
{
|
||||||
check_link();
|
check_link();
|
||||||
if (_isselection)
|
if (_isselection)
|
||||||
erase_selection ();
|
erase_selection ();
|
||||||
@ -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