From 8e6d164b470a9a016e60b4f4cf9df616232f502c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 15 Dec 2017 23:20:54 +0100 Subject: [PATCH] imageinfo_ni: use package version as fallback for image version Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/3912ff4c344270b5fb0b9dacdafdd48706c0401f Author: vanhofen Date: 2017-12-15 (Fri, 15 Dec 2017) Origin message was: ------------------ - imageinfo_ni: use package version as fallback for image version --- src/gui/imageinfo_ni.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/imageinfo_ni.cpp b/src/gui/imageinfo_ni.cpp index 6006f1856..fa9aeb03b 100644 --- a/src/gui/imageinfo_ni.cpp +++ b/src/gui/imageinfo_ni.cpp @@ -298,6 +298,13 @@ void CImageInfoNI::paint() imageversion.str(""); imageversion << releaseCycle << " (" << versionInfo.getType() << ")"; } +#ifdef PACKAGE_VERSION + else + { + imageversion.str(""); + imageversion << PACKAGE_VERSION; + } +#endif ypos += iheight; paintLine(xpos, font_info, g_Locale->getText(LOCALE_IMAGEINFO_IMAGE));