mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 22:18:30 +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);
|
||||
break;
|
||||
case ByPixel:
|
||||
m_pos = MID(0, m_pos, getBounds().w);
|
||||
if (isVisible())
|
||||
m_pos = MID(0, m_pos, getBounds().w);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -347,7 +348,8 @@ void Splitter::limitPos()
|
||||
m_pos = MID(0, m_pos, 100);
|
||||
break;
|
||||
case ByPixel:
|
||||
m_pos = MID(0, m_pos, getBounds().h);
|
||||
if (isVisible())
|
||||
m_pos = MID(0, m_pos, getBounds().h);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user