Skip to content

Commit

Permalink
Fix bug where rotating counterclockwise a few times would cause Excep…
Browse files Browse the repository at this point in the history
…tion

when writing out index file.
  • Loading branch information
jimmc committed Feb 25, 2010
1 parent 97a2936 commit 0d94b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/jimmc/mimprint/PlayItem.scala
Expand Up @@ -244,7 +244,7 @@ object PlayItem {
* the specified amount.
*/
def rotate(item:PlayItem, inc:Int) : PlayItem = {
val rot = (item.getRotFlag()+inc+1)%4 - 1
val rot = (item.getRotFlag()+inc+5)%4 - 1 //keep it >= -1
new PlayItem(item.comments,item.baseDir,item.fileName,rot)
}
}

0 comments on commit 0d94b40

Please sign in to comment.