Skip to content

Commit 0a5233e

Browse files
committed
Replace absolute with sized offset
1 parent 044d454 commit 0a5233e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qhexedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void QHexEdit::setCursorPosition(qint64 position)
181181
else
182182
_cursorRect = QRect(
183183
_pxCursorX - pxOfsX,
184-
_pxCursorY - _pxCharHeight + 4,
184+
_pxCursorY - _pxCharHeight + _pxSelectionSub,
185185
_pxCursorWidth,
186186
_pxCharHeight
187187
);

0 commit comments

Comments
 (0)