From f2a786bf6b1bcc16a221655c54fd17aa69dcea15 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 14 Apr 2015 10:25:29 +0200 Subject: [PATCH] CImageInfo: fix missing license text for missing translations --- src/gui/imageinfo.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index c99fdd382..8a4c03123 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -341,6 +341,13 @@ string CImageInfo::getLicenseText() CComponentsText txt; string res = txt.getTextFromFile(file); + //assign default text, if language file is not available + if(res.empty()){ + file = LICENSEDIR; + file += "english.license"; + res = txt.getTextFromFile(file); + } + return res; }