This is an automated email from the ASF dual-hosted git repository. damjan pushed a commit to branch odf-1.3 in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 027efe2b90273f4a4cf9d56c1206949f42548304 Author: Damjan Jovanovic <dam...@apache.org> AuthorDate: Mon Jan 8 21:29:11 2024 +0200 Check for ODF > 1.3 when bringing up the version upgrade dialog. Patch by: me --- main/sfx2/source/doc/objstor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/sfx2/source/doc/objstor.cxx b/main/sfx2/source/doc/objstor.cxx index d794747b60..89ab8e1ca3 100644 --- a/main/sfx2/source/doc/objstor.cxx +++ b/main/sfx2/source/doc/objstor.cxx @@ -856,8 +856,8 @@ sal_Bool SfxObjectShell::DoLoad( SfxMedium *pMed ) if ( sVersion.getLength() ) { double nVersion = sVersion.toDouble(); - if ( nVersion > 1.20001 && SfxObjectShell_Impl::NeedsOfficeUpdateDialog() ) - // ODF version greater than 1.2 - added some decimal places to be safe against floating point conversion errors (hack) + if ( nVersion > 1.30001 && SfxObjectShell_Impl::NeedsOfficeUpdateDialog() ) + // ODF version greater than 1.3 - added some decimal places to be safe against floating point conversion errors (hack) { ::rtl::OUString sDocumentURL( pMedium->GetOrigURL() ); ::rtl::OUString aSystemFileURL;