diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp index f8889ae0..a9bcc11d 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp @@ -87,8 +87,8 @@ void ByteItemGraphicsScene::adjustByteWidgets() { std::max(((rowCount * byteWidgetHeight) + margins.top() + margins.bottom()), this->parent->height()) ); - // Don't bother recalculating the byte item positions if the number of rows have not changed. - if (rowCount == this->byteItemsByRowIndex.size()) { + // Don't bother recalculating the byte item positions if the number of rows & columns have not changed. + if (rowCount == this->byteItemsByRowIndex.size() && rowCapacity == this->byteItemsByColumnIndex.size()) { return; }