GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

PCanvas.popCursor should do nothing when no cursors has been pushed #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While trying to test the PCanvas I realized that popping a cursor from the 
stack will yield an invalid index exception. But... if you think about it 
(the same way I do), popping a cursor from the cursor stack should just leave 
the cursor as the default cursor.  It's not like we're introducing the need 
to check for null, since popCursor() returns void.

I'll make the change if there's agreement.

Original issue reported on code.google.com by allain.lalonde on 13 Jul 2009 at 6:43

GoogleCodeExporter commented 9 years ago
Fixed in r486

Original comment by allain.lalonde on 17 Jul 2009 at 2:15