[aseprite] 119/250: Fix bug painting Timeline cels in some special cases

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit be9e0255b6bc4db7d4df26e04bd3a91927ff2b28
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Oct 1 11:52:32 2015 -0300

    Fix bug painting Timeline cels in some special cases
---
 src/app/ui/timeline.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/app/ui/timeline.cpp b/src/app/ui/timeline.cpp
index d1b8731..d90c101 100644
--- a/src/app/ui/timeline.cpp
+++ b/src/app/ui/timeline.cpp
@@ -932,10 +932,7 @@ void Timeline::onPaint(ui::PaintEvent& ev)
       LayerImage* layerPtr = static_cast<LayerImage*>(m_layers[layer]);
       data.begin = layerPtr->getCelBegin();
       data.end = layerPtr->getCelEnd();
-      data.it = layerPtr->findFirstCelIteratorAfter(first_frame);
-      if (data.it != data.begin)
-        --data.it;
-
+      data.it = layerPtr->findFirstCelIteratorAfter(first_frame-1);
       data.prevIt = data.end;
       data.nextIt = (data.it != data.end ? data.it+1: data.end);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list