From e3ad12c4f26c13258fcc70181cb7e17ccc6d7f37 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 25 Feb 2010 17:13:15 +0000 Subject: [PATCH] From Simon Buckley, "Attached is a small change to the file src\osgPlugins\dxf\dxfFile.cpp that allows the dxf reader to skip comments in a dxf file. I found with the existing version and a test file I had that the loader failed when comments were present. I made a very minor change to allow "999" comment codes to be skipped rather than causing load failure." --- src/osgPlugins/dxf/dxfFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgPlugins/dxf/dxfFile.cpp b/src/osgPlugins/dxf/dxfFile.cpp index 95b8574aa..dc2e1192f 100644 --- a/src/osgPlugins/dxf/dxfFile.cpp +++ b/src/osgPlugins/dxf/dxfFile.cpp @@ -91,6 +91,7 @@ dxfFile::assign(codeValue& cv) _isNewSection = true; } else if (cv._groupCode == 0 && s == std::string("EOF")) { return 0; + } else if (cv._groupCode == 999) { // skip comments } else if (cv._groupCode == 2 && _isNewSection) { _isNewSection = false; // std::cout << "Reading section " << s << std::endl;