Gitlab updates will be applied at 1:30pm, (17:30 UTC), today. No downtime expected.

Commit f4e756f9 authored by Ben Boeckel's avatar Ben Boeckel

vtkResliceCursorRepresentation: avoid divide-by-zero

Change-Id: Id533f580ce894f8e6c7d17943259c455ec1dfe7d
parent b0bd0465
......@@ -533,8 +533,8 @@ void vtkResliceCursorRepresentation::UpdateReslicePlane()
}
}
double outputSpacingX = (planeSizeX == 0) ? 1.0 : planeSizeX/extentX;
double outputSpacingY = (planeSizeY == 0) ? 1.0 : planeSizeY/extentY;
double outputSpacingX = (extentX == 0) ? 1.0 : planeSizeX/extentX;
double outputSpacingY = (extentY == 0) ? 1.0 : planeSizeY/extentY;
bool modify = false;
for (int i = 0; i < 4; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment