diff --git a/examples/osgtransferfunction/TransferFunctionWidget.cpp b/examples/osgtransferfunction/TransferFunctionWidget.cpp index 8f5590e4c..95f8aa2fd 100644 --- a/examples/osgtransferfunction/TransferFunctionWidget.cpp +++ b/examples/osgtransferfunction/TransferFunctionWidget.cpp @@ -137,7 +137,7 @@ bool TransferFunctionWidget::handleImplementation(osgGA::EventVisitor* ev, osgGA _startedDrag = false; if (ea->getButtonMask()==osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON) { - osg::Vec3 position; + osg::Vec3d position; if (computePositionInLocalCoordinates(ev, ea, position)) { _startedDrag = true; @@ -153,7 +153,7 @@ bool TransferFunctionWidget::handleImplementation(osgGA::EventVisitor* ev, osgGA // OSG_NOTICE<<"Dragged "<