diff --git a/Runtime/GuiSys/CGuiTextSupport.cpp b/Runtime/GuiSys/CGuiTextSupport.cpp index de1cc1da2..0f4021053 100644 --- a/Runtime/GuiSys/CGuiTextSupport.cpp +++ b/Runtime/GuiSys/CGuiTextSupport.cpp @@ -211,7 +211,7 @@ const std::pair& CGuiTextSupport::GetBounds() } void CGuiTextSupport::AutoSetExtent() { - auto& bounds = GetBounds(); + const auto& bounds = GetBounds(); x34_extentX = bounds.second.x; x38_extentY = bounds.second.y; }