From dc3b5a05ae2402d491d81a1d4e31bb05df1cfa1f Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Tue, 15 Nov 2005 17:55:01 +0000 Subject: [PATCH] Fix GCC build --- golded3/gemlst.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/golded3/gemlst.cpp b/golded3/gemlst.cpp index 31bc460..eb21c5d 100644 --- a/golded3/gemlst.cpp +++ b/golded3/gemlst.cpp @@ -210,7 +210,12 @@ void GMsgList::ReadMlst(int n) { strcpy(ml->re, msg.re); ml->colorby = GetColorName(ml->by, msg.orig, -1); - ml->colorto = GetColorName(ml->to, AA->isnet() ? msg.dest : Addr(), -1); + if(AA->isnet()) + ml->colorto = GetColorName(ml->to, msg.dest, -1); + else + { Addr a; + ml->colorto = GetColorName(ml->to, a, -1); + } } @@ -357,7 +362,7 @@ void GMsgList::print_line(uint idx, uint pos, bool isbar) { window.printns(pos, bycol, color, ml->by, bysiz); } - if (((ml->high & MLST_HIGH_TO) || (ml->colorto != -1)) && + if (((ml->high & MLST_HIGH_TO) || (ml->colorto != -1)) && !AA->Msglistwidesubj()) { int color = ((ml->colorto != -1) && !isbar) ? ml->colorto : hattr_;