Commit fe9bf22e authored by Zack Galbreath's avatar Zack Galbreath
Browse files

fix unused variable warning

Change-Id: Ib7ce4380b4df1dcd215f319a70d250e430e2c267
parent 8558697a
......@@ -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