Skip to content

Commit b236e0f

Browse files
committed
Refresh after adding or clearing user areas
1 parent d32bb0f commit b236e0f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/qhexedit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,13 @@ void QHexEdit::replace(qint64 pos, qint64 len, const QByteArray &ba)
353353
void QHexEdit::addUserArea(qint64 posStart, qint64 posEnd, QColor fontColor, QBrush areaStyle)
354354
{
355355
_colorManager->addUserArea(posStart, posEnd, fontColor, areaStyle);
356+
refresh();
356357
}
357358

358359
void QHexEdit::clearUserAreas()
359360
{
360361
_colorManager->clearUserAreas();
362+
refresh();
361363
}
362364

363365
// ********************************************************************** Utility functions

0 commit comments

Comments
 (0)