mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
Fix limiting splitter position when it's hidden (with no bounds)
This commit is contained in:
parent
97609b6504
commit
b74727489d
@ -337,7 +337,8 @@ void Splitter::limitPos()
|
|||||||
m_pos = MID(0, m_pos, 100);
|
m_pos = MID(0, m_pos, 100);
|
||||||
break;
|
break;
|
||||||
case ByPixel:
|
case ByPixel:
|
||||||
m_pos = MID(0, m_pos, getBounds().w);
|
if (isVisible())
|
||||||
|
m_pos = MID(0, m_pos, getBounds().w);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -347,7 +348,8 @@ void Splitter::limitPos()
|
|||||||
m_pos = MID(0, m_pos, 100);
|
m_pos = MID(0, m_pos, 100);
|
||||||
break;
|
break;
|
||||||
case ByPixel:
|
case ByPixel:
|
||||||
m_pos = MID(0, m_pos, getBounds().h);
|
if (isVisible())
|
||||||
|
m_pos = MID(0, m_pos, getBounds().h);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user