[vtk-developers] Bug in vtkAxisActor2D.cxx
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Mon Oct 22 09:46:11 EDT 2001
hi,
While trying to figure out the vtkXTextMapper bug I found the source
of an old bug where if you change the font factor or fonts you would
never see he font change unless the window was resized. The bug is in
vtkAxisActor2D::BuildAxis(...) specifically:
// See whether fonts have to be rebuilt
if ( this->LastSize[0] != size[0] || this->LastSize[1] != size[1] )
{
needToBuildFont = 1;
this->LastSize[0] = size[0];
this->LastSize[1] = size[1];
}
else
{
needToBuildFont = 0;
}
This is why the resizing the window works. Is there a better way to
do this so that a change in the fonts will be properly updated? Any
suggestions?
prabhu
--
http://www.aero.iitm.ernet.in/~prabhu http://mayavi.sf.net
Virtue is a relative term.
-- Spock, "Friday's Child", stardate 3499.1
More information about the vtk-developers
mailing list