Skip to content
Snippets Groups Projects
Commit f6c748e2 authored by Ben Boeckel's avatar Ben Boeckel Committed by Lucas Givord
Browse files

vtkPiecewiseFunction: actually assign a fallback SearchMethod

The `type` value that was just verified as out-of-range is still set
after the block, so instead update it so the single assignment at the
end is shared.

(cherry picked from commit 9c6c952e)
parent 382c038e
No related branches found
No related tags found
No related merge requests found
......@@ -1111,7 +1111,7 @@ void vtkPiecewiseFunction::SetCustomSearchMethod(int type)
vtkGenericWarningMacro("enum out of scope, binary search will be applied");
// set to binary search because it is the most general searchMethod
this->Internal->CustomSearchMethod = BINARY_SEARCH;
type = BINARY_SEARCH;
}
this->Internal->CustomSearchMethod = static_cast<SearchMethod>(type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment