[studio] Make selection tracker not go below 0
Some checks failed
Build / build (push) Failing after 1m4s
Some checks failed
Build / build (push) Failing after 1m4s
This commit is contained in:
parent
7247a5522a
commit
6ba7f83a3b
@ -126,12 +126,12 @@ class SelectionTracker {
|
||||
constexpr Selection selection() const noexcept {
|
||||
return {
|
||||
{
|
||||
ox::min(m_pointA.x, m_pointB.x),
|
||||
ox::min(m_pointA.y, m_pointB.y),
|
||||
ox::max(0, ox::min(m_pointA.x, m_pointB.x)),
|
||||
ox::max(0, ox::min(m_pointA.y, m_pointB.y)),
|
||||
},
|
||||
{
|
||||
ox::max(m_pointA.x, m_pointB.x),
|
||||
ox::max(m_pointA.y, m_pointB.y),
|
||||
ox::max(0, ox::max(m_pointA.x, m_pointB.x)),
|
||||
ox::max(0, ox::max(m_pointA.y, m_pointB.y)),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user