diff --git a/src/osgPresentation/SlideShowConstructor.cpp b/src/osgPresentation/SlideShowConstructor.cpp index 7c047caeb..d48cf6c2b 100644 --- a/src/osgPresentation/SlideShowConstructor.cpp +++ b/src/osgPresentation/SlideShowConstructor.cpp @@ -51,7 +51,7 @@ #include #include -#include +#include #include using namespace osgPresentation; @@ -1623,7 +1623,12 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position osg::ref_ptr dragger; if (volumeData.useTabbedDragger) - dragger = new osgManipulator::TabBoxDragger; + { + if (volumeData.useTrackballDragger) + dragger = new osgManipulator::TabBoxTrackballDragger; + else + dragger = new osgManipulator::TabBoxDragger; + } else dragger = new osgManipulator::TrackballDragger();