// Draw empty area(after end line)
if (type == DRAW_ALL || type == DRAW_AFTER) {
QBrush brush(config.Colors[Color::Background]);
- QRect rect(0, y_top, width(), height());
- painter.fillRect(rect, brush);
+ painter.fillRect(0, y_top + config.byteHeight(), width(), height(), brush);
}
// Copy from document
y += config.byteHeight();
}
}
+
+ // Draw empty area(after end line)
+ if (x <= HexConfig::Num) {
+ QBrush brush(config.Colors[Color::Background]);
+ painter.fillRect(config.x(x), y, width(), config.byteHeight(), brush);
+ }
}
inline void HexView::drawText(QPainter &painter, const QString &hex, int x, int y)