Skip to content

Commit da7c83b

Browse files
committed
Fixed bug that Show Legend option on colormap had no effect. (#268)
1 parent 3bcc055 commit da7c83b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

FEBioStudio/GLPostScene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ LegendData CGLPostScene::GetLegendData(int n)
15881588
if (n == 0)
15891589
{
15901590
Post::CGLColorMap* pcm = glm->GetColorMap();
1591-
if (pcm && pcm->IsActive())
1591+
if (pcm && pcm->IsActive() && pcm->ShowLegend())
15921592
{
15931593
float rng[2];
15941594
pcm->GetRange(rng);

0 commit comments

Comments
 (0)