Address PR feedback.

This commit is contained in:
Brian Phlipot
2022-12-23 12:34:02 -07:00
committed by teejusb
parent 4a6b1a743c
commit d079940fea
44 changed files with 259 additions and 236 deletions
+1 -1
View File
@@ -647,7 +647,7 @@ void BitmapText::CropLineToWidth(size_t l, int width)
{
int used_width= width;
std::wstring& line= m_wTextLines[l];
const auto fit= m_pFont->GetGlyphsThatFit(line, &used_width);
const size_t fit= m_pFont->GetGlyphsThatFit(line, &used_width);
if(fit < line.size())
{
line.erase(line.begin()+fit, line.end());