mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Fix issue loading negative splitter position
This commit is contained in:
parent
47b6df19ee
commit
1a07472824
@ -290,6 +290,7 @@ void Splitter::onPreferredSize(PreferredSizeEvent& ev)
|
||||
void Splitter::onLoadLayout(LoadLayoutEvent& ev)
|
||||
{
|
||||
ev.stream() >> m_pos;
|
||||
if (m_pos < 0) m_pos = 0;
|
||||
if (m_type == ByPixel)
|
||||
m_pos *= jguiscale();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user