Hello

I want to incorporate bug 30584 solution into 1.5.1 release, because i have faced
ConcurrentModificationException in UpdateManager's "repaint" method while resizing JSVGCanvas.


I have changed some code in JSVGComponents' updateRenderingTransform method:

AffineTransform at = calculateViewingTransform(fragmentIdentifier, elt);
 TO
final AffineTransform at = calculateViewingTransform(fragmentIdentifier, elt);

AND

cgn.setViewingTransform(at);
TO
Runnable r = new Runnable() {
 AffineTransform myAT = at;
 CanvasGraphicsNode myCGN = getCanvasGraphicsNode();
 public void run() {
   myCGN.setViewingTransform(myAT);
 }
};
UpdateManager um = getUpdateManager();
if (um != null) um.getUpdateRunnableQueue().invokeLater(r);
else r.run();

Is it enough?

I don't want to checkout the latest version of batik from HEAD, because AFAIK it can be very unstable. By the way when can we expect a new release of batik?

Lukasz



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



Reply via email to