summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/sfxhelp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/sfxhelp.cxx')
-rw-r--r--sfx2/source/appl/sfxhelp.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 6ab161be9f33..f9dd7cdc814b 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -188,6 +188,15 @@ void AppendConfigToken( String& rURL, sal_Bool bQuestionMark, const rtl::OUStrin
rURL += DEFINE_CONST_UNICODE("&System=");
rURL += SvtHelpOptions().GetSystem();
+ static rtl::OUString aVersion;
+ if ( aVersion.isEmpty() )
+ aVersion = utl::Bootstrap::getProductVersion();
+
+ if ( !aVersion.isEmpty() )
+ {
+ rURL += DEFINE_CONST_UNICODE( "&Version=" );
+ rURL += String( aVersion );
+ }
}
sal_Bool GetHelpAnchor_Impl( const String& _rURL, String& _rAnchor )