Kaydet (Commit) 4498bc44 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix assert on export of fdo77716-1.docx to odt

SwWriteTableCols becomes unsorted because rCol.nPos is < COLFUZZY

and it is unsigned so integer overflow on comparison. Just just move rhs
subtract to lhs add.

Change-Id: Ie037e8ba914a4c00e51d9dd1e0a0af9e1f4d353b
üst 75a3ade6
......@@ -204,7 +204,7 @@ inline bool SwWriteTableCol::operator<( const SwWriteTableCol& rCol ) const
{
// Da wir hier nur die Wahrheits-Grade 0 und 1 kennen, lassen wir lieber
// auch nicht zu, dass x==y und x<y gleichzeitig gilt ;-)
return nPos < rCol.nPos - COLFUZZY;
return nPos + COLFUZZY < rCol.nPos;
}
struct SwWriteTableColLess {
......
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