From 60bf6d719410027a35c94007c7a16eebb58dd355 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 18 Nov 2017 16:17:38 +0100 Subject: [PATCH] CImageInfo: expand fallback to get readable version string Evaluation of one char could be not enough to get a right result. --- src/gui/imageinfo.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 6cb910762..c52fffd80 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -281,7 +281,14 @@ void CImageInfo::InitInfoData() #ifdef IMAGE_VERSION version_string = IMAGE_VERSION; #else - if (isdigit(version_string[0])){ + bool is_version_code = true; + for (size_t i=0; i