Skip to content

Commit

Permalink
TODO Squash
Browse files Browse the repository at this point in the history
  • Loading branch information
jgehrig committed Dec 7, 2020
1 parent 3efa484 commit f887fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/shellwidget/shellwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static void RemoveLigaturesUnderCursorGlyphPerLigature(
// Find the cursor index with respect to the QGlyphRun using text position index.
const int cursorGlyphPos{ GetCursorPositionGlyphPerLigature(cellWidth, cursorTextPos, glyphPositionList) };

if (!IsValidIndex(glyphIndexList, cursorGlyphPos)) {
if (!IsValidIndex(glyphIndexList, cursorGlyphPos) || !IsValidIndex(glyphIndexListNoLigatures, cursorTextPos)) {
return;
}

Expand Down

0 comments on commit f887fbb

Please sign in to comment.