Corretti link multipli

git-svn-id: svn://10.65.10.50/trunk@968 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-02-06 10:34:03 +00:00
parent bcdd621fb5
commit 598132948d

View File

@ -436,9 +436,12 @@ const char* TPrintrow::row_codified() const
// returns the row with @-codes for font style and color
char last_attr = -1;
int last_color = -1;
int last = 0, k = 0;
int last = 0, k = 0, len = -1;
for (int i = 0; i < _row.size(); i++)
if (_row[i] > ' ') len = i;
for (i = 0; i < _row.size(); i++)
{
if (_attr[i] != last_attr)
{
@ -460,7 +463,7 @@ const char* TPrintrow::row_codified() const
}
last_attr = _attr[i];
}
if (_cols[i] != last_color && _row[i] > ' ')
if (_cols[i] != last_color && i <= len)
{
__tmp_string[k++] = '$';
__tmp_string[k++] = '[';