From d0885a3f841976c2f701953b0083a9eb344acf8d Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 20 Mar 2018 23:41:13 +0000 Subject: [PATCH] Fix a long-standing bug with the log windows: when the log length would reach the configured "max size", newly added log lines would not use the configured color/font for the msg's log-level (they'd all use the default color/font). --- src/sbbs3/ctrl/MainFormUnit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sbbs3/ctrl/MainFormUnit.cpp b/src/sbbs3/ctrl/MainFormUnit.cpp index b47c8f534f..9e87ef0b8f 100644 --- a/src/sbbs3/ctrl/MainFormUnit.cpp +++ b/src/sbbs3/ctrl/MainFormUnit.cpp @@ -313,6 +313,7 @@ static void log_msg(TRichEdit* Log, log_msg_t* msg) if(msg->repeated) Line += " [x" + AnsiString(msg->repeated) + "]"; Log->SelLength=0; + Log->SelStart=-1; Log->SelAttributes->Assign( MainForm->LogAttributes(msg->level, Log->Color, Log->Font)); Log->Lines->Add(Line); -- GitLab