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:
villa 1995-01-11 10:20:40 +00:00
parent bd76a15db8
commit 636db1596d
3 changed files with 20 additions and 10 deletions

View File

@ -459,7 +459,7 @@ const char* TPrintrow::row_codified() const
}
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++] = '[';

View File

@ -334,7 +334,7 @@ int TTextfile::replace(long l, const char* txt, int pos, int len)
}
if (cnt == pos)
{
{
line.overwrite(txt, cnt+skip);
_dirty_lines.set(l-_page_start);
return cnt;

View File

@ -56,6 +56,8 @@ extern "C"
// vista la mania degli 883, eccoti un po' di concerti di Mozart
const long E_ADDLINE = 488L;
const long E_ADDLINE_ONSCREEN = 467L;
static bool in_update;
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);
_link_displayed = TRUE;
#if XVT_OS == XVT_OS_WIN
xvt_statbar_set(d);
if (in_update) return;
#if XVT_OS == XVT_OS_WIN
TString dd(d); if (dd.len() > 40) dd.cut(40);
xvt_statbar_set(dd);
#endif
if (_link_button != -1)
{
@ -153,9 +157,13 @@ void TViswin::erase_link (long y, long x1, long x2)
{
paint_link (y, x1, x2);
_link_displayed = FALSE;
#if XVT_OS == XVT_OS_WIN
xvt_statbar_set ("");
xvt_statbar_refresh ();
if (in_update) return;
#if XVT_OS == XVT_OS_WIN
if (!in_update)
{
xvt_statbar_set ("");
xvt_statbar_refresh ();
}
#endif
if (_link_button != -1)
{
@ -226,7 +234,6 @@ bool TViswin::check_link (TPoint * p)
strcpy (descr, ttt.get ());
strcat (descr, t.get (3));
_linktxt = t.get(3);
if (_linktxt.len() > 40) _linktxt.cut(40);
if (_multiple)
{
// get all parts of the same color
@ -868,7 +875,9 @@ void TViswin::update ()
{
if (_scrolling)
return;
in_update = TRUE;
erase_point ();
autoscroll (FALSE);
set_mode (M_COPY);
@ -878,7 +887,7 @@ void TViswin::update ()
bar ((X_OFFSET-1), rows()-BUTTONROW_SIZE, columns()+1, rows() + 1);
}
if (_need_update)
{
{
check_link();
if (_isselection)
erase_selection ();
@ -917,6 +926,7 @@ else if (_showbuts)
autoscroll (TRUE);
_need_update = TRUE;
_need_scroll = none;
in_update = FALSE;
}
void TViswin::abort_print ()