diff --git a/libs/qsynedit/qsynedit/document.cpp b/libs/qsynedit/qsynedit/document.cpp index 8d01a4e6..cf04870b 100644 --- a/libs/qsynedit/qsynedit/document.cpp +++ b/libs/qsynedit/qsynedit/document.cpp @@ -1756,6 +1756,8 @@ int Document::updateGlyphStartPositionList( glyphStartPositionList[i] = right; right += gWidth; } + if (endGlyphfirst) { if (!startPaint ) { nX-= (first - tokenWidth - 1) ; @@ -435,7 +435,7 @@ void QSynEditPainter::paintToken( break; } i+=1; - glyphWidth += calcSegmentInterval(glyphStartPositionList, tokenLeft+tokenWidth, i); + glyphWidth += calcSegmentInterval(glyphStartPositionList, tokenRight, i); textToPaint+=glyph2; if (tokenWidth + glyphWidth > last ) break; diff --git a/libs/qsynedit/qsynedit/qsynedit.cpp b/libs/qsynedit/qsynedit/qsynedit.cpp index 62a057e7..d888114c 100644 --- a/libs/qsynedit/qsynedit/qsynedit.cpp +++ b/libs/qsynedit/qsynedit/qsynedit.cpp @@ -1908,7 +1908,7 @@ void QSynEdit::doDeleteLastChar() Q_ASSERT(glyphIndex>0); int oldCaretX = mCaretX; int newCaretX = mDocument->glyphStartChar(mCaretY-1, glyphIndex-1)+1; - qDebug()<<"delete last char:"<