diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-09-16 14:18:36 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-09-18 00:13:28 +0200 |
commit | 9b556afc5a2507077dff54c18a2b19c7df3c4575 (patch) | |
tree | c64534b406f6856ae5a3061a676af9285b248be0 /src/gui/text/qtextengine.cpp | |
parent | 82dbea55a746b5ba58316186b201dc6505782d17 (diff) |
Fix menu mnemonic inside ligatures
The code to draw underlines on specific characters in widget menu could
not handle ligatures. Instead of using special code to handle this case
this patch changes the mnemonic underlines to use normal format-ranges
making the text engine deal with splitting ligatures as necessary.
Task-number: QTBUG-20960
Change-Id: I6159110eae7aa8c819af16ba4a393d758871e2e0
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/gui/text/qtextengine.cpp')
-rw-r--r-- | src/gui/text/qtextengine.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index 2db8b3fc1b..452b263670 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -1406,7 +1406,6 @@ void QTextEngine::init(QTextEngine *e) e->minWidth = 0; e->maxWidth = 0; - e->underlinePositions = 0; e->specialData = 0; e->stackEngine = false; #ifndef QT_NO_RAWFONT |