summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/about.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/about.cxx')
-rw-r--r--cui/source/dialogs/about.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 73fe04ebc5d5..54d4fbf00de7 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_buildid.h>
+
#include <vcl/layout.hxx>
#include <vcl/svapp.hxx>
#include <vcl/msgbox.hxx>
@@ -242,10 +244,11 @@ OUString AboutDialog::GetVersionString()
sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId);
}
-#ifdef EXTRA_BUILDID
- sVersion += "\n";
- sVersion += EXTRA_BUILDID;
-#endif
+ if (strlen(EXTRA_BUILDID) > 0)
+ {
+ sVersion += "\n";
+ sVersion += EXTRA_BUILDID;
+ }
return sVersion;
}