summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qinputcontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text/qinputcontrol.cpp')
-rw-r--r--src/gui/text/qinputcontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qinputcontrol.cpp b/src/gui/text/qinputcontrol.cpp
index 87d8c59128..4edd46ff0e 100644
--- a/src/gui/text/qinputcontrol.cpp
+++ b/src/gui/text/qinputcontrol.cpp
@@ -43,7 +43,7 @@ bool QInputControl::isAcceptableInput(const QKeyEvent *event) const
if (c.category() == QChar::Other_PrivateUse)
return true;
- if (c.isHighSurrogate() && text.length() > 1 && text.at(1).isLowSurrogate())
+ if (c.isHighSurrogate() && text.size() > 1 && text.at(1).isLowSurrogate())
return true;
if (m_type == TextEdit && c == u'\t')