MantisBT - VTK
View Issue Details
0012025VTK(No Category)public2011-03-29 19:012013-04-05 20:26
nclemeur 
Marcus D. Hanwell 
normalmajoralways
closedfixed 
LinuxCentos5
 
 
0012025: vtkFreeTypeStringToImage::GetBounds
I have noticed that the local variable "int tmp[4];" in the methods vtkFreeTypeStringToImage::GetBounds should be initialised to values of 0. Indeed, the later call to GetBoundingBox is not populating that variable when the string is empty.

This manifest it-self on by an empty chart since the calculation of the axis size is completely wrong.

I am seeing this problem on Linux using a quite recent version of vtk trunk linked with Mesa.
No tags attached.
Issue History
2011-03-29 19:01nclemeurNew Issue
2011-03-29 20:35David PartykaAssigned To => David Partyka
2011-03-29 20:35David PartykaStatusbacklog => tabled
2011-04-05 11:43Marcus D. HanwellAssigned ToDavid Partyka => Marcus D. Hanwell
2011-05-01 12:53Marcus D. HanwellNote Added: 0026294
2011-05-01 12:53Marcus D. HanwellStatustabled => @80@
2011-05-01 12:53Marcus D. HanwellResolutionopen => fixed
2013-04-05 20:26Berk GeveciStatuscustomer review => closed

Notes
(0026294)
Marcus D. Hanwell   
2011-05-01 12:53   
Commit fcf14be addresses this issue, although I don't think that is why you see an empty chart, that would be the code in vtkChartXY that checks if there are any visible plots before rendering, along with the axis visibility code that checks if a plot is visible and associated with an axis before displaying it. They are both controlled by ivars now too, so that you can display an empty plot.