From b2a3d84d08d0bfe256ff4b91158182db3d150ff5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 7 Sep 2009 12:51:00 +0000 Subject: [PATCH] Added filter for .filename files --- src/osgPlugins/dicom/ReaderWriterDICOM.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/dicom/ReaderWriterDICOM.cpp b/src/osgPlugins/dicom/ReaderWriterDICOM.cpp index 97f933ad6..ce6cfc209 100644 --- a/src/osgPlugins/dicom/ReaderWriterDICOM.cpp +++ b/src/osgPlugins/dicom/ReaderWriterDICOM.cpp @@ -113,8 +113,15 @@ class ReaderWriterDICOM : public osgDB::ReaderWriter itr != contents.end(); ++itr) { + if ((*itr).empty()) continue; + + if ((*itr)[0]=='.') + { + osg::notify(osg::NOTICE)<<"Ignoring tempory file "<<*itr<