diff --git a/Library/MeterString.cpp b/Library/MeterString.cpp index 047e859a..5252612a 100644 --- a/Library/MeterString.cpp +++ b/Library/MeterString.cpp @@ -548,6 +548,7 @@ bool CMeterString::Update() Graphics graphics(m_MeterWindow->GetDoubleBuffer()); if (DrawString(graphics, &rect)) { + LogWithArgs(LOG_ERROR, L"%f - %s", (double)rect.Width, m_Name.c_str()); m_W = (int)rect.Width; m_H = (int)rect.Height; } @@ -651,7 +652,8 @@ bool CMeterString::DrawString(Graphics& graphics, RectF* rect) else { stringFormat.SetTrimming(StringTrimmingNone); - stringFormat.SetFormatFlags(StringFormatFlagsNoClip | StringFormatFlagsNoWrap); + stringFormat.SetFormatFlags(StringFormatFlagsNoClip | StringFormatFlagsNoWrap | + StringFormatFlagsMeasureTrailingSpaces); } CharacterRange range(0, stringLen);