Page 1 of 1

CircularGauge crash fix

Posted: Fri Mar 15, 2013 5:27 pm
by 17064597
Recall this issue: http://stackoverflow.com/questions/1400 ... and-cursor

I believe you already fixed this, but I'll post this anyway :)
I moved the try/finally block inside the visibility check in drawHand() function, CircularGauge.java(1010). That makes sure the call to resetTransform() doesn't crash.

Re: CircularGauge crash fix

Posted: Mon Mar 18, 2013 2:58 pm
by yeray
Hello,

The fix we implemented was on Graphics3DAndroid.java (android folder), in the resetTransform() function we now check if restoreCount>0 before restoring the saved canvas:

Code: Select all

	public void resetTransform() {
		if (restoreCount>0)
			canvas.restoreToCount(restoreCount);
	}