[studio] Make selection tracker not go below 0
This commit is contained in:
parent
fd64bfae13
commit
dc7c2559d6
@ -126,12 +126,12 @@ class SelectionTracker {
|
|||||||
constexpr Selection selection() const noexcept {
|
constexpr Selection selection() const noexcept {
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
ox::min(m_pointA.x, m_pointB.x),
|
ox::max(0, ox::min(m_pointA.x, m_pointB.x)),
|
||||||
ox::min(m_pointA.y, m_pointB.y),
|
ox::max(0, ox::min(m_pointA.y, m_pointB.y)),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ox::max(m_pointA.x, m_pointB.x),
|
ox::max(0, ox::max(m_pointA.x, m_pointB.x)),
|
||||||
ox::max(m_pointA.y, m_pointB.y),
|
ox::max(0, ox::max(m_pointA.y, m_pointB.y)),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user