[kandinsky] Avoid weird blinking in sequence term sum due to wrong rect

union

Change-Id: Ib873f272be4404678e99c5163138ddfd890d4707
This commit is contained in:
Émilie Feral
2017-06-08 17:35:51 +02:00
parent 26a45c5f52
commit b9e52978ba

View File

@@ -69,6 +69,12 @@ void computeUnionBound(KDCoordinate size1, KDCoordinate size2,
}
KDRect KDRect::unionedWith(const KDRect & other) const {
if (this->isEmpty()) {
return other;
}
if (other.isEmpty()) {
return *this;
}
/* We should ignore coordinate whose size is zero
* For example, if r1.height is zero, just ignore r1.y and r1.height. */