mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
xLnt. rich_text operator less fixed.
This commit is contained in:
parent
3246d602c2
commit
cb55735644
|
@ -87,11 +87,8 @@ void rich_text::add_run(const rich_text_run &t)
|
|||
|
||||
bool rich_text::operator<(const rich_text &rhs) const
|
||||
{
|
||||
if (runs_.size() < rhs.runs_.size())
|
||||
return true;
|
||||
|
||||
if (runs_.size() > rhs.runs_.size())
|
||||
return false;
|
||||
if (runs_.size() != rhs.runs_.size())
|
||||
return runs_.size() < rhs.runs_.size();
|
||||
|
||||
for (std::size_t i = 0; i < runs_.size(); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user