mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 01:20:25 +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)
|
void Splitter::onLoadLayout(LoadLayoutEvent& ev)
|
||||||
{
|
{
|
||||||
ev.stream() >> m_pos;
|
ev.stream() >> m_pos;
|
||||||
|
if (m_pos < 0) m_pos = 0;
|
||||||
if (m_type == ByPixel)
|
if (m_type == ByPixel)
|
||||||
m_pos *= jguiscale();
|
m_pos *= jguiscale();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user