[escher] Fix buffer choice in TextField::glyphFrameAtPosition

This commit is contained in:
Léa Saviot
2019-01-31 10:56:17 +01:00
committed by Émilie Feral
parent 4f63b16e0a
commit b2a97cfc7a
7 changed files with 14 additions and 12 deletions

View File

@@ -426,7 +426,8 @@ bool TextArea::ContentView::removeStartOfLine() {
return false;
}
KDRect TextArea::ContentView::glyphFrameAtPosition(const char * position) const {
KDRect TextArea::ContentView::glyphFrameAtPosition(const char * text, const char * position) const {
assert(text == m_text.text());
KDSize glyphSize = m_font->glyphSize();
Text::Position p = m_text.positionAtPointer(position);