Skip to content

Commit caec5e7

Browse files
authored
Merge pull request #153 from bigbigmdm/patch-1
Do not show the last blank line
2 parents 13e3a72 + dcae123 commit caec5e7

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
@@ -908,7 +908,7 @@ void QHexEdit::paintEvent(QPaintEvent *event)
908908
if (_addressArea)
909909
{
910910
QString address;
911-
for (int row=0, pxPosY = _pxCharHeight; row <= (_dataShown.size()/_bytesPerLine); row++, pxPosY +=_pxCharHeight)
911+
for (int row=0, pxPosY = _pxCharHeight; row < (_dataShown.size()/_bytesPerLine); row++, pxPosY +=_pxCharHeight)
912912
{
913913
address = QString("%1").arg(_bPosFirst + row*_bytesPerLine + _addressOffset, _addrDigits, 16, QChar('0'));
914914
painter.setPen(QPen(_addressFontColor));

0 commit comments

Comments
 (0)