Merge branch 'development' into cmake/SPEC-7484
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> # Conflicts: # Code/Editor/CryEditDoc.cpp # Code/Editor/CryEditDoc.h # Code/Legacy/CryCommon/CryArray.h # Code/Legacy/CryCommon/CryString.h # Code/Legacy/CryCommon/UnicodeBinding.h # Code/Legacy/CrySystem/LocalizedStringManager.cpp # Gems/LyShine/Code/Source/StringUtfUtils.h # Gems/PhysXDebug/Code/Source/SystemComponent.cpp
This commit is contained in:
@@ -92,7 +92,7 @@ void UiTextComponentOffsetsSelector::ParseBatchLine(const UiTextComponent::DrawB
|
||||
// on the same line or not.
|
||||
else if (!lastIndexFound)
|
||||
{
|
||||
int substrLength = drawBatch.text.length() - firstIndexLineIndex;
|
||||
int substrLength = static_cast<int>(drawBatch.text.length() - firstIndexLineIndex);
|
||||
AZStd::string curSubstring(drawBatch.text.substr(firstIndexLineIndex, substrLength));
|
||||
curLineWidth += drawBatch.font->GetTextSize(curSubstring.c_str(), false, m_fontContext).x;
|
||||
lineOffsetsStack.top()->right.SetX(AZStd::GetMax<float>(lineOffsetsStack.top()->right.GetX(), curLineWidth));
|
||||
|
||||
Reference in New Issue
Block a user