Commit 42c15b92 authored by Zack Galbreath's avatar Zack Galbreath Committed by Code Review
Browse files

Merge topic 'fix_legend_warning' into master

fe9bf22e fix unused variable warning
parents 8558697a fe9bf22e
......@@ -68,13 +68,11 @@ bool vtkCategoryLegend::Paint(vtkContext2D* painter)
// Draw the title (if any)
vtkVector2f stringBounds[2];
float titleWidth = 0.0;
float titleHeight = 0.0;
if (this->Title != "")
{
painter->ApplyTextProp(this->TitleProperties.GetPointer());
painter->ComputeStringBounds(this->Title, stringBounds->GetData());
titleWidth = stringBounds[1].GetX();
titleHeight = stringBounds[1].GetY() + this->Padding;
float x = this->Rect.GetX() + this->Rect.GetWidth() / 2.0;
......
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