CircularGauge crash fix

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
znakeeye
Newbie
Newbie
Posts: 44
Joined: Mon Jan 07, 2013 12:00 am

CircularGauge crash fix

Post by znakeeye » Fri Mar 15, 2013 5:27 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: CircularGauge crash fix

Post by Yeray » Mon Mar 18, 2013 2:58 pm

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);
	}
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply