summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/guess_crop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/guess_crop.cc b/src/lib/guess_crop.cc
index 5deb0e480..7ee7a7286 100644
--- a/src/lib/guess_crop.cc
+++ b/src/lib/guess_crop.cc
@@ -62,7 +62,7 @@ guess_crop (shared_ptr<const Image> image, double threshold)
break;
}
default:
- DCPOMATIC_ASSERT (false);
+ throw PixelFormatError("guess_crop()", image->pixel_format());
}
return brightest > threshold;