summaryrefslogtreecommitdiff
path: root/main_simple_scanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main_simple_scanner.cpp')
-rw-r--r--main_simple_scanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main_simple_scanner.cpp b/main_simple_scanner.cpp
index 60f514a..2cbe08b 100644
--- a/main_simple_scanner.cpp
+++ b/main_simple_scanner.cpp
@@ -207,5 +207,5 @@ int main(int argc, char **argv) {
generate_image(image_width, std::stoul(ih),
std::stod(vw), std::stod(fl),
std::stod(sz), std::stod(sr), cap,
- (int)(1.0 * image_width * 0.015 / 8));
+ std::max((int)(1.0 * image_width * 0.015 / 8), 1));
} \ No newline at end of file