From f88ac18f8b9a4a513eb1eb09dca93935e5d64e50 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Thu, 17 Nov 2005 17:00:25 +0000 Subject: INTEGRATION: CWS aboutbox (1.19.12); FILE MERGED 2005/11/17 11:04:46 pb 1.19.12.1: fix: #127910# ProductPatch key has moved from bootstrap[rc|.ini] to version[rc|.ini] --- unotools/source/config/bootstrap.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'unotools/source') diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx index 55523daed355..d048005f33fa 100644 --- a/unotools/source/config/bootstrap.cxx +++ b/unotools/source/config/bootstrap.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bootstrap.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: hr $ $Date: 2005-09-28 13:22:00 $ + * last change: $Author: hr $ $Date: 2005-11-17 18:00:25 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -723,7 +723,14 @@ OUString Bootstrap::getProductPatchLevel(OUString const& _sDefault) { OUString const csBuildIdItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_PRODUCT_PATCH_LEVEL)); - return data().getBootstrapValue( csBuildIdItem, _sDefault ); + // pb: #127910# ProductPatch key has moved from bootstrap[rc|.ini] to version[rc|.ini] + OUString sPPLevel; + // read ProductPatchLevel from version[rc|.ini], if it doesn't exist or ProductPatchLevel is empty + if ( data().getVersionValue( csBuildIdItem, sPPLevel, _sDefault ) != sal_True || + sPPLevel.getLength() == 0 ) + // read ProductPatchLevel from bootstrap[rc|.ini] + sPPLevel = data().getBootstrapValue( csBuildIdItem, _sDefault ); + return sPPLevel; } // --------------------------------------------------------------------------------------- -- cgit v1.2.3