diff --git a/src/plugins/texteditor/texteditoroverlay.cpp b/src/plugins/texteditor/texteditoroverlay.cpp
index de8c0b88013c69fe4939a0a31bd4f7a151004fe8..4d5b1f33f3f1238dc4084598d87e0e96303a8e79 100644
--- a/src/plugins/texteditor/texteditoroverlay.cpp
+++ b/src/plugins/texteditor/texteditoroverlay.cpp
@@ -230,7 +230,7 @@ QPainterPath TextEditorOverlay::createSelectionPath(const QTextCursor &begin, co
                        selection.at(i+1).right()) + margin;
 
         points += QPointF(x+1, selection.at(i).top());
-        points += QPointF(x+1, selection.at(i).bottom()+1);
+        points += QPointF(x+1, selection.at(i).bottom());
 
     }