Skip to content

Commit 7d87e2c

Browse files
committed
BUG: Fix bad maxIndex() in OrientationConvertor
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
1 parent 17234b9 commit 7d87e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/EbsdLib/OrientationMath/OrientationConverter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class OrientationConverter
288288
*/
289289
static int GetMaxIndex()
290290
{
291-
return 6;
291+
return static_cast<int>(static_cast<int>(OrientationRepresentation::Type::Unknown) - 1);
292292
}
293293

294294
protected:

0 commit comments

Comments
 (0)