data_ = data;
cursorPos_ = 0;
resetSelection(0);
+
+ viewport()->update();
}
void QHexView::showFromOffset(size_t offset)
position = 0;
int maxPos = 0;
- if (data_) {
+ if (data_)
maxPos = data_->count() * 2;
- if (data_->count() % BYTES_PER_LINE)
- maxPos++;
- }
if (position > maxPos)
position = maxPos;