From e29f2f7a9203e8dce936b69325ede0231f93851a Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Sun, 7 Jul 2019 17:24:29 +0200 Subject: [PATCH] SDK: TextAreaWidget: silence harmless shadow warnings --- SDK/src/NDK/Widgets/TextAreaWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SDK/src/NDK/Widgets/TextAreaWidget.cpp b/SDK/src/NDK/Widgets/TextAreaWidget.cpp index 3ab119a0a..5f331f878 100644 --- a/SDK/src/NDK/Widgets/TextAreaWidget.cpp +++ b/SDK/src/NDK/Widgets/TextAreaWidget.cpp @@ -582,9 +582,9 @@ namespace Ndk }; // Move text so that cursor is always visible - const auto* glyph = GetGlyph(m_cursorPositionEnd, nullptr); - float glyphPos = (glyph) ? glyph->bounds.x : 0.f; - float glyphWidth = (glyph) ? glyph->bounds.width : 0.f; + const auto* lastGlyph = GetGlyph(m_cursorPositionEnd, nullptr); + float glyphPos = (lastGlyph) ? lastGlyph->bounds.x : 0.f; + float glyphWidth = (lastGlyph) ? lastGlyph->bounds.width : 0.f; auto& node = m_textEntity->GetComponent(); float textPosition = node.GetPosition(Nz::CoordSys_Local).x - paddingWidth;