[Libreoffice-commits] core.git: include/unotools

Michael Stahl (via logerrit) logerrit at kemper.freedesktop.org
Fri May 1 19:53:48 UTC 2020


 include/unotools/saveopt.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9608f72347a8ec99f454802cc3cabc6e32d92370
Author:     Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Wed Apr 22 20:18:09 2020 +0200
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Fri May 1 21:53:09 2020 +0200

    ODF export: fix wrong definition of ODFSVER_LATEST_EXTENDED
    
    The only real use of ODFSVER_LATEST_EXTENDED is as translated value of
    the default ODFVER_LATEST; it must match ODFSVER_012_EXTENDED
    which is larger than ODFSVER_LATEST | ODFSVER_EXTENDED because
    it *is* used in comparisons as the return value of
    GetODFSaneDefaultVersion().
    (Guess the comment means not to use it as literal in comparisons.)
    
    Change-Id: I6ac5e012f314e86acdcb7ac7d615c747cd7b8a52
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92726
    Tested-by: Jenkins
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/include/unotools/saveopt.hxx b/include/unotools/saveopt.hxx
index 7c189534d2da..029ab6f0b1cb 100644
--- a/include/unotools/saveopt.hxx
+++ b/include/unotools/saveopt.hxx
@@ -81,8 +81,8 @@ public:
         ODFSVER_013_EXTENDED = 13,  ///< ODF 1.3 extended
 
         // The latest defined standard. Adapt when a new one is published.
-        ODFSVER_LATEST = ODFSVER_012,                               ///< @internal DO NOT USE in comparisons
-        ODFSVER_LATEST_EXTENDED = ODFSVER_LATEST | ODFSVER_EXTENDED ///< @internal DO NOT USE in comparisons
+        ODFSVER_LATEST = ODFSVER_012,                   ///< @internal DO NOT USE in comparisons
+        ODFSVER_LATEST_EXTENDED = ODFSVER_012_EXTENDED  ///< @internal DO NOT USE in comparisons
     };
 
     SvtSaveOptions();


More information about the Libreoffice-commits mailing list