Skip to content

Commit 5db5405

Browse files
committed
Introduce a flat status bar without separator lines. (WinMerge#2377) (2)
1 parent 8325373 commit 5db5405

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Src/BasicFlatStatusBar.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ void CBasicFlatStatusBar::OnPaint()
8585
CRect rcText = rcPart;
8686
rcText.left += radius;
8787
CString text = ctrl.GetText(i);
88-
text.Replace(_T("\t"), _T(" "));
88+
if (text.Find('\t') >= 0)
89+
{
90+
text.Trim();
91+
text.Replace(_T("\t"), _T(" "));
92+
}
8993
dc.DrawText(text, &rcText, DT_LEFT | DT_VCENTER | DT_SINGLELINE);
9094
}
9195
}

0 commit comments

Comments
 (0)