From a105630199bb4be80b3a8228a2c3e5b0c7347625 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 Apr 2021 18:51:13 +0200 Subject: Make url parsing better by using a list of valid tlds. Make urls blue in text --- src/FileAnalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/FileAnalyzer.cpp') 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; -- cgit v1.2.3