This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 12978a2410a2d234a532ee77daf1ecf354853ed9
Author: Matthias Seidel <[email protected]>
AuthorDate: Thu Apr 15 00:24:02 2021 +0200

    Quick fix to get the version string right in the About dialog
    
    This is not really a good solution. But we can use it until someone else 
has a better idea.
    (cherry picked from commit b33d75b3fb597aac2bdbf5a9dc7ea43ec6f5561b)
---
 main/cui/source/dialogs/about.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/cui/source/dialogs/about.cxx 
b/main/cui/source/dialogs/about.cxx
index 5c21ec9..150eb6e 100644
--- a/main/cui/source/dialogs/about.cxx
+++ b/main/cui/source/dialogs/about.cxx
@@ -502,10 +502,10 @@ const rtl::OUString AboutDialog::GetBuildId() const
         bool bMatchingUPD =
                 ( sProductSource.getLength() >= 3 )
             &&  ( sBuildId.getLength() >= 3 )
-            &&  ( sProductSource.copy( sProductSource.getLength() - 3 ) == 
sBuildId.copy( 0, 3 ) );
+            &&  ( sProductSource.copy( sProductSource.getLength() - 4 ) == 
sBuildId.copy( 0, 4 ) );
         OSL_ENSURE( bMatchingUPD, "BUILDID and ProductSource do not match in 
their UPD" );
         if ( bMatchingUPD )
-            sProductSource = sProductSource.copy( 0, 
sProductSource.getLength() - 3 );
+            sProductSource = sProductSource.copy( 0, 
sProductSource.getLength() - 4 );
 
         // prepend the product source
         sBuildIdBuff.insert( 0, sProductSource );

Reply via email to