Skip to content

Commit d6de0b4

Browse files
committed
fix silly mistake of negative/positive confusion
1 parent 45eb5e4 commit d6de0b4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Cifti/VolumeSpace.cxx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,7 @@ void VolumeSpace::getOrientAndSpacingForPlumb(OrientTypes* orientOut, float* spa
198198
{
199199
spacingOut[j] = m_sform[i][j];
200200
originOut[j] = m_sform[i][3];
201-
bool negative;
202-
if (m_sform[i][j] > 0.0f)
203-
{
204-
negative = true;
205-
} else {
206-
negative = false;
207-
}
201+
bool negative = (m_sform[i][j] < 0.0f);
208202
switch (i)
209203
{
210204
case 0:

0 commit comments

Comments
 (0)