aboutsummaryrefslogtreecommitdiff
path: root/src/FileAnalyzer.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-03 18:51:13 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-05 05:53:41 +0200
commita105630199bb4be80b3a8228a2c3e5b0c7347625 (patch)
treedbb50d356d6201085362250a2891c6ab22ae8e59 /src/FileAnalyzer.cpp
parent3ca7ed72c2f3a046e94213a8c26d80eafde9585c (diff)
Make url parsing better by using a list of valid tlds. Make urls blue in text
Diffstat (limited to 'src/FileAnalyzer.cpp')
-rw-r--r--src/FileAnalyzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FileAnalyzer.cpp b/src/FileAnalyzer.cpp
index ccad221..0059233 100644
--- a/src/FileAnalyzer.cpp
+++ b/src/FileAnalyzer.cpp
@@ -128,7 +128,7 @@ namespace QuickMedia {
return false;
}
- if(width > 0 || height > 0) {
+ if(width > 0 && height > 0) {
if(create_thumbnail(destination_path_tmp, destination_path, sf::Vector2i(width, height))) {
remove(destination_path_tmp.data.c_str());
return true;