diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-09-27 10:29:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-09-27 10:29:38 +0100 |
| commit | 034e63ec04e416f4944069adfb0c01ca163e0cc0 (patch) | |
| tree | 9347fc8c46e043bb2a1e5a3ebec3efa9d4e56289 | |
| parent | 35987f8d3631ae49a6eadc25bffb0f0d0eb78dad (diff) | |
Try to fix problems with upper-case still-image extensions.
| -rw-r--r-- | src/lib/film_state.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/film_state.cc b/src/lib/film_state.cc index 739eeac3c..e472434ce 100644 --- a/src/lib/film_state.cc +++ b/src/lib/film_state.cc @@ -251,10 +251,13 @@ ContentType FilmState::content_type () const { #if BOOST_FILESYSTEM_VERSION == 3 - string const ext = filesystem::path(content).extension().string(); + string ext = filesystem::path(content).extension().string(); #else - string const ext = filesystem::path(content).extension(); + string ext = filesystem::path(content).extension(); #endif + + transform (ext.begin(), ext.end(), ext.begin(), ::tolower); + if (ext == ".tif" || ext == ".tiff" || ext == ".jpg" || ext == ".jpeg" || ext == ".png") { return STILL; } |
