diff --git a/src/conversion/vtk/part/foamVtuSizingTemplates.C b/src/conversion/vtk/part/foamVtuSizingTemplates.C index 7f89a44aeb219a094759cd34e497623302184782..1a9164b4dce566c0ee73bd4f8ddd9874db56725f 100644 --- a/src/conversion/vtk/part/foamVtuSizingTemplates.C +++ b/src/conversion/vtk/part/foamVtuSizingTemplates.C @@ -574,7 +574,8 @@ void Foam::vtk::vtuSizing::populateArrays if (output == contentType::LEGACY) { // Update size for legacy face stream - faceOutput[startLabel] = (faceIndexer - startLabel); + // (subtract 1 to avoid counting the storage location) + faceOutput[startLabel] = (faceIndexer - 1 - startLabel); } else {