diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp index 149b9904..05fb8d18 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp @@ -407,10 +407,12 @@ namespace Widgets } this->changeListPane->setDiffRanges(diffRanges); + + const auto diffCount = this->differentialHexViewerSharedState.differences.size(); this->diffCountLabel->setText( - count == 0 + diffCount == 0 ? "Contents are identical" - : QLocale(QLocale::English).toString(count) + (count == 1 ? " difference" : " differences") + : QLocale(QLocale::English).toString(diffCount) + (diffCount == 1 ? " difference" : " differences") ); }