mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user