Quick fix to crash in TXPNode.

This commit is contained in:
Robert Osfield
2004-09-08 15:14:18 +00:00
parent daf8887bb0
commit a9c731eff2

View File

@@ -185,6 +185,12 @@ bool TXPNode::loadArchive()
void TXPNode::updateEye(osg::NodeVisitor& nv)
{
if (!_pageManager)
{
osg::notify(osg::NOTICE)<<"TXPNode::updateEye() no pageManager created"<<std::endl;
return;
}
trpg2dPoint loc;
loc.x = nv.getEyePoint().x() - _originX;
loc.y = nv.getEyePoint().y() - _originY;