[Libreoffice-commits] core.git: unotools/source
Michael Stahl
mstahl at redhat.com
Tue Jul 2 05:42:23 PDT 2013
unotools/source/config/fontcfg.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2f1678fbad1a9a793eb9a93303f18783e643c8bb
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Jul 2 14:36:21 2013 +0200
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
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index e44b8d2..a529bdc 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[] =
More information about the Libreoffice-commits
mailing list