Kaydet (Commit) 2f1678fb authored tarafından Michael Stahl's avatar Michael Stahl

fix StrictStringSort (and STL assertion in starmath test)

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

(regression from 6a080679)

Change-Id: I93027726b95e8d398292e1c2dee7795b1f7b7b8b
üst 9cb36ee3
...@@ -832,7 +832,7 @@ void FontSubstConfiguration::getMapName( const OUString& rOrgName, OUString& rSh ...@@ -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[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment