From 2f1678fbad1a9a793eb9a93303f18783e643c8bb Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 2 Jul 2013 14:36:21 +0200 Subject: 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 --- unotools/source/config/fontcfg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unotools') 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[] = -- cgit