An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 40f07f2e authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

BUG: Fixed a few off by one errors in the string image.

Didn't account for the padding that is added to the strings.
parent b8562203
......@@ -1016,9 +1016,9 @@ void vtkFreeTypeTools::PrepareImageData(vtkImageData *data,
data->UpdateInformation();
data->SetUpdateExtent(data->GetWholeExtent());
data->PropagateUpdateExtent();
data->SetOrigin(text_size[0], text_size[1], 0.0);
data->SetSpacing(text_size[0] / double(new_img_dims[0]),
text_size[1] / double(new_img_dims[1]),
data->SetOrigin(text_size[0] + 1, text_size[1] + 1, 0.0);
data->SetSpacing(text_size[0] / double(new_img_dims[0] - 1),
text_size[1] / double(new_img_dims[1] - 1),
0.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