diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index 9e2ae80a5..b7c111e5e 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -1981,10 +1981,12 @@ int main( int argc, char **argv ) images.push_back(readRaw(sizeX, sizeY, sizeZ, numberBytesPerComponent, numberOfComponents, endian, raw_filename)); } - while (arguments.read("--images")) + int images_pos = arguments.find("--images"); + if (images_pos>=0) { ImageList imageList; - for(int pos=1;pos