Skip to content

Commit

Permalink
Fix bug with undo insert for empty sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
meh2481 committed Nov 27, 2016
1 parent 507c027 commit 930a2a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,10 @@ int Sheet::getSelected(int x, int y)

void Sheet::selectAnimation(int selected)
{
if(selected < 0)
selected = 0;
if(selected >= animations.size())
selected = animations.size() - 1;
if(selected < 0)
selected = 0;
curSelectedAnim = selected;
}

Expand Down

0 comments on commit 930a2a6

Please sign in to comment.