fix StrictStringSort (and STL assertion in starmath test)

OUString::compareTo may return not just -1 but any negative number.

(regression from 6a08067902)

Change-Id: I93027726b95e8d398292e1c2dee7795b1f7b7b8b
This commit is contained in:
Michael Stahl
2013-07-02 14:36:21 +02:00
parent 9cb36ee3df
commit 2f1678fbad

View File

@@ -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[] =