An update will be applied today, Nov30th, 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, ...@@ -1016,9 +1016,9 @@ void vtkFreeTypeTools::PrepareImageData(vtkImageData *data,
data->UpdateInformation(); data->UpdateInformation();
data->SetUpdateExtent(data->GetWholeExtent()); data->SetUpdateExtent(data->GetWholeExtent());
data->PropagateUpdateExtent(); data->PropagateUpdateExtent();
data->SetOrigin(text_size[0], text_size[1], 0.0); data->SetOrigin(text_size[0] + 1, text_size[1] + 1, 0.0);
data->SetSpacing(text_size[0] / double(new_img_dims[0]), data->SetSpacing(text_size[0] / double(new_img_dims[0] - 1),
text_size[1] / double(new_img_dims[1]), text_size[1] / double(new_img_dims[1] - 1),
0.0); 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