mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-13 10:13:47 +00:00
Align timeline range outline with the timeline grid
This commit is contained in:
parent
a4fc3735c7
commit
94f162112a
@ -2900,7 +2900,7 @@ gfx::Rect Timeline::getPartBounds(const Hit& hit) const
|
||||
case PART_RANGE_OUTLINE: {
|
||||
gfx::Rect rc = getRangeBounds(m_range);
|
||||
int s = outlineWidth();
|
||||
rc.enlarge(s);
|
||||
rc.enlarge(gfx::Border(s-1, s-1, s, s));
|
||||
if (rc.x < bounds.x) rc.offset(s, 0).inflate(-s, 0);
|
||||
if (rc.y < bounds.y) rc.offset(0, s).inflate(0, -s);
|
||||
return rc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user