Fix last-but-one commit.
authorCarl Hetherington <cth@carlh.net>
Fri, 1 May 2015 16:08:29 +0000 (17:08 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 1 May 2015 16:08:29 +0000 (17:08 +0100)
src/lib/util.cc

index 22baa8fd3b920482551231df7037281974d60d49..08683fb7e6b31632b590f5e0af7d550f9e08ceeb 100644 (file)
@@ -509,7 +509,7 @@ audio_channel_name (int c)
 bool
 valid_image_file (boost::filesystem::path f)
 {
-       if (boost::starts_with (f.string(), "._")) {
+       if (boost::starts_with (f.leaf().string(), "._")) {
                return false;
        }