Are you getting the bounding box of an element on a JSVGCanvas?  I found
that I got an NPE if the element I was trying to bound was either
partially or fully offscreen.

Michael Bishop 

-----Original Message-----
From: Saehoon Cheon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 19, 2007 2:21 PM
To: [email protected]
Subject: SVGRect error

Hi,
I want to measure the size of text box. The sample code is followed.
But it sometimes causes NullPointException error. The problem is that it
sometimes happened, but sometimes does not happed.
Please give me a solution. 

SVGRect trect = ((SVGOMTextElement)rootNE).getBBox();
int cW = (int)trect.getWidth();

Regards.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • SVGRect error Saehoon Cheon
    • RE: SVGRect error Bishop, Michael W. CONTR J9C880

Reply via email to