diff --git a/src/osgPresentation/SlideShowConstructor.cpp b/src/osgPresentation/SlideShowConstructor.cpp index 8eb381601..b8dd09512 100644 --- a/src/osgPresentation/SlideShowConstructor.cpp +++ b/src/osgPresentation/SlideShowConstructor.cpp @@ -1073,8 +1073,6 @@ osg::ref_ptr SlideShowConstructor::readImage(const std::string& file osg::ref_ptr image; osgDB::DirectoryContents filenames; - std::string foundFile = filename; - if (imageData.imageSequence) { // check for wild cards @@ -2800,7 +2798,7 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position osg::ref_ptr details = dynamic_cast(image->getUserData()); osg::ref_ptr matrix = details ? details->getMatrix() : dynamic_cast(image->getUserData()); - osg::ref_ptr layer = new osgVolume::ImageLayer(image.get()); + layer = new osgVolume::ImageLayer(image.get()); if (details) { layer->setTexelOffset(details->getTexelOffset());