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:
@@ -832,7 +832,7 @@ void FontSubstConfiguration::getMapName( const OUString& rOrgName, OUString& rSh
|
|||||||
struct StrictStringSort : public ::std::binary_function< const FontNameAttr&, const FontNameAttr&, bool >
|
struct StrictStringSort : public ::std::binary_function< const FontNameAttr&, const FontNameAttr&, bool >
|
||||||
{
|
{
|
||||||
bool operator()( const FontNameAttr& rLeft, const FontNameAttr& rRight )
|
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[] =
|
static const char* const pAttribNames[] =
|
||||||
|
Reference in New Issue
Block a user