[Scummvm-git-logs] scummvm master -> dba71c85858f63e8df055896de0e6f805de07407
aquadran
noreply at scummvm.org
Mon Oct 28 13:34:16 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dba71c8585 WINTERMUTE: CID: 1403372
Commit: dba71c85858f63e8df055896de0e6f805de07407
https://github.com/scummvm/scummvm/commit/dba71c85858f63e8df055896de0e6f805de07407
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2024-10-28T14:34:10+01:00
Commit Message:
WINTERMUTE: CID: 1403372
Changed paths:
engines/wintermute/base/font/base_font_truetype.cpp
diff --git a/engines/wintermute/base/font/base_font_truetype.cpp b/engines/wintermute/base/font/base_font_truetype.cpp
index 7dcc5d43e40..f6e6cfb2292 100644
--- a/engines/wintermute/base/font/base_font_truetype.cpp
+++ b/engines/wintermute/base/font/base_font_truetype.cpp
@@ -638,6 +638,8 @@ void BaseFontTT::measureText(const WideString &text, int maxWidth, int maxHeight
Common::Array<WideString>::iterator it;
textWidth = 0;
for (it = lines.begin(); it != lines.end(); ++it) {
+ if (!it)
+ continue;
textWidth = MAX(textWidth, _font->getStringWidth(*it));
}
More information about the Scummvm-git-logs
mailing list