Fix in UITextView::getText, always return the buffer, text cache can have a different buffer if text-overflow is enabled, wrap doesn't change buffer anymore since is soft-wrap.

This commit is contained in:
Martín Lucas Golini
2026-02-09 13:53:34 -03:00
parent 7977cd99dd
commit 29f89d6f3a

View File

@@ -185,10 +185,7 @@ UITextView* UITextView::setFontStyle( const Uint32& fontStyle ) {
}
const String& UITextView::getText() const {
if ( mFlags & UI_WORD_WRAP )
return mString;
return mTextCache.getString();
return mString;
}
UITextView* UITextView::setText( const String& text ) {