mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add length check in AppendTextContainer
Allow `Length` parameter to be longer than maximum string length.
This commit is contained in:
parent
fe40048ca8
commit
f0c295b2d3
|
@ -1046,6 +1046,8 @@ public:
|
|||
// string length
|
||||
if(Length < 0)
|
||||
Length = str_length(pText);
|
||||
else
|
||||
Length = minimum(Length, str_length(pText));
|
||||
|
||||
const float Scale = 1.0f / pSizeData->m_FontSize;
|
||||
|
||||
|
|
Loading…
Reference in a new issue