mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fix preview center when tiled mode is enabled
This commit is contained in:
parent
42b1154c25
commit
1c68c25594
@ -1439,7 +1439,7 @@ Rect Editor::getViewportBounds()
|
||||
Rect Editor::getVisibleSpriteBounds()
|
||||
{
|
||||
if (m_sprite)
|
||||
return getViewportBounds().createIntersection(m_sprite->bounds());
|
||||
return getViewportBounds().createIntersection(gfx::Rect(canvasSize()));
|
||||
|
||||
// This cannot happen, the sprite must be != nullptr. In old
|
||||
// Aseprite versions we were using one Editor to show multiple
|
||||
|
Loading…
Reference in New Issue
Block a user