mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 01:59:59 +01:00
[escher] Fix bug due to type confusing
Change-Id: I4a3072a69858b7fdee5215d80e4ce238612a5cd7
This commit is contained in:
@@ -115,9 +115,9 @@ void TextField::ContentView::reinitDraftTextBuffer() {
|
||||
}
|
||||
|
||||
void TextField::ContentView::setCursorLocation(int location) {
|
||||
location = location < 0 ? 0 : location;
|
||||
location = location > (signed char)m_currentTextLength ? m_currentTextLength : location;
|
||||
m_currentCursorLocation = location;
|
||||
int adjustedLocation = location < 0 ? 0 : location;
|
||||
adjustedLocation = adjustedLocation > (signed int)m_currentTextLength ? (signed int)m_currentTextLength : adjustedLocation;
|
||||
m_currentCursorLocation = adjustedLocation;
|
||||
layoutSubviews();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user