Commit 156390e9 authored by Zack Galbreath's avatar Zack Galbreath
Browse files

Another approach to fix this degenerate case

This commit resolves the error that were previously experiencing
when a tree was pruned down to a single leaf.  It does so without
changing the color lookup table for normal, collapsed leaves.  This
means that we do not have to update the baseline image to keep the
AutoCollapse test passing.

Change-Id: Idf4fc9e2f9ad2046f298623208769138c1bad841
parent 110169fd
......@@ -140,10 +140,16 @@ void vtkTreeHeatmapItem::SetTree(vtkTree *tree)
double rangeMinimum = 2.0;
if (numLeavesInBiggestSubTree < rangeMinimum)
rangeMinimum = numLeavesInBiggestSubTree;
this->TriangleLookupTable->SetHueRange(0.5, 0.045);
1.0, static_cast<double>(numLeavesInBiggestSubTree));
rangeMinimum, static_cast<double>(numLeavesInBiggestSubTree));
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