mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 10:21:04 +00:00
Fix bug painting Timeline cels in some special cases
This commit is contained in:
parent
e4a71b9065
commit
be9e0255b6
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user