mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[escher] Fix buffer choice in TextField::glyphFrameAtPosition
This commit is contained in:
@@ -20,7 +20,7 @@ void TextInput::ContentView::setFont(const KDFont * font) {
|
||||
}
|
||||
|
||||
KDRect TextInput::ContentView::cursorRect() {
|
||||
return glyphFrameAtPosition(m_cursorLocation);
|
||||
return glyphFrameAtPosition(editedText(), m_cursorLocation);
|
||||
}
|
||||
|
||||
void TextInput::ContentView::layoutSubviews() {
|
||||
@@ -32,7 +32,7 @@ void TextInput::ContentView::reloadRectFromPosition(const char * position, bool
|
||||
}
|
||||
|
||||
KDRect TextInput::ContentView::dirtyRectFromPosition(const char * position, bool lineBreak) const {
|
||||
KDRect glyphRect = glyphFrameAtPosition(position);
|
||||
KDRect glyphRect = glyphFrameAtPosition(text(), position);
|
||||
KDRect dirtyRect = KDRect(
|
||||
glyphRect.x(),
|
||||
glyphRect.y(),
|
||||
|
||||
Reference in New Issue
Block a user