diff options
| author | 2023-11-28 11:25:06 +0100 | |
|---|---|---|
| committer | 2023-11-28 11:25:06 +0100 | |
| commit | de5b9e20de07af20937e6ecae3f00d09c8d63981 (patch) | |
| tree | 8c0be4196265be5ff30603ea47d57819be66f416 /src | |
| parent | Remove QWebEngine usage in core. Rewrite web package manager (#2570) (diff) | |
| download | KVIrc-de5b9e20de07af20937e6ecae3f00d09c8d63981.tar.gz KVIrc-de5b9e20de07af20937e6ecae3f00d09c8d63981.tar.bz2 KVIrc-de5b9e20de07af20937e6ecae3f00d09c8d63981.zip | |
2569: fix mouse selection of mixed text: normal and surrogate pairs
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvirc/ui/KviIrcView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvirc/ui/KviIrcView.cpp b/src/kvirc/ui/KviIrcView.cpp index 51b9236b3..25abfb2fc 100644 --- a/src/kvirc/ui/KviIrcView.cpp +++ b/src/kvirc/ui/KviIrcView.cpp @@ -2765,7 +2765,7 @@ int KviIrcView::getVisibleCharIndexAt(KviIrcViewLine *, int xPos, int yPos) curChar = l->szText.at(l->pBlocks[i].block_start + retValue); if (IRCVIEW_ISHIGHSURROGATE(curChar)) // Surrogate pair { - iLeft += m_pFm->horizontalAdvance(l->szText.mid(retValue), 2); + iLeft += m_pFm->horizontalAdvance(l->szText.mid(l->pBlocks[i].block_start + retValue), 2); retValue+=2; } else |
