mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[kandinsky] Avoid weird blinking in sequence term sum due to wrong rect
union Change-Id: Ib873f272be4404678e99c5163138ddfd890d4707
This commit is contained in:
@@ -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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user