Changeset 5151 for geovis/trunk/Renderer.cpp
- Timestamp:
- Mar 18, 2015, 7:59:09 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Renderer.cpp
r5118 r5151 143 143 TRACE("Enter"); 144 144 145 // Removes temp files 146 deleteColorMap("all"); 147 145 148 // Cache is deleted in main() to allow ref-counted objects to 146 149 // be deleted and threads to exit first … … 258 261 259 262 do { 260 if (itr->first.compare("default") == 0 ||261 itr->first.compare("grayDefault") == 0) {262 if (id.compare("all") != 0) {263 WARN("Cannot delete a default color map");264 }265 continue;266 }267 268 263 TRACE("Deleting ColorMap %s", itr->first.c_str()); 264 std::string path = getColorMapFilePath(itr->first); 265 if (remove(path.c_str()) < 0) { 266 ERROR("Failed to delete colormap file '%s': %s", 267 path.c_str(), strerror(errno)); 268 } 269 269 itr = _colorMaps.erase(itr); 270 270 } while (doAll && itr != _colorMaps.end());
Note: See TracChangeset
for help on using the changeset viewer.