mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 05:42:32 +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()
|
Rect Editor::getVisibleSpriteBounds()
|
||||||
{
|
{
|
||||||
if (m_sprite)
|
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
|
// This cannot happen, the sprite must be != nullptr. In old
|
||||||
// Aseprite versions we were using one Editor to show multiple
|
// Aseprite versions we were using one Editor to show multiple
|
||||||
|
Loading…
x
Reference in New Issue
Block a user