Fix for fractional exposure time values, fixes #2081

This commit is contained in:
Morgan Hardwood
2017-04-16 18:52:26 +02:00
parent 59b62d90a1
commit 2c9c3b2a7f
2 changed files with 3 additions and 3 deletions

View File

@@ -566,7 +566,7 @@ std::string ImageMetaData::shutterToString (double shutter)
char buffer[256];
if (shutter > 0.0 && shutter < 0.9) {
if (shutter > 0.0 && shutter <= 0.5) {
sprintf (buffer, "1/%0.0f", 1.0 / shutter);
} else {
sprintf (buffer, "%0.1f", shutter);