diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-07-02 14:36:21 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-07-02 14:39:16 +0200 |
commit | 2f1678fbad1a9a793eb9a93303f18783e643c8bb (patch) | |
tree | b07fcd1aae6c5a3d3fe831107636c2905b0b90a1 /unotools | |
parent | 9cb36ee3df0af10bc63727216fa41a6e8ef90a42 (diff) |
fix StrictStringSort (and STL assertion in starmath test)
OUString::compareTo may return not just -1 but any negative number.
(regression from 6a08067902ddc0ec61a7c7b4b0035b303f643a50)
Change-Id: I93027726b95e8d398292e1c2dee7795b1f7b7b8b
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/fontcfg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx index e44b8d22ba69..a529bdc9de10 100644 --- a/unotools/source/config/fontcfg.cxx +++ b/unotools/source/config/fontcfg.cxx @@ -832,7 +832,7 @@ void FontSubstConfiguration::getMapName( const OUString& rOrgName, OUString& rSh struct StrictStringSort : public ::std::binary_function< const FontNameAttr&, const FontNameAttr&, bool > { bool operator()( const FontNameAttr& rLeft, const FontNameAttr& rRight ) - { return rLeft.Name.compareTo( rRight.Name ) == -1 ; } + { return rLeft.Name.compareTo( rRight.Name ) < 0; } }; static const char* const pAttribNames[] = |