xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub W. Jozwicki <jakub...@go2.pl>
Subject Re: Synchronization in Batik
Date Wed, 23 Nov 2005 04:01:22 GMT
I fixed it.

org\apache\batik\gvt\renderer\StrokingTextPainer:

function: public int[] getSelected():

// get the list of text runs
-       List textRuns = getTextRuns(textNode, aci);
+       List textRuns = null;
+       try {
+           textRuns = getTextRuns(textNode, aci);
+       }
+       catch(Exception exc) { return null; }


function: public Shape getHighlightShape()

 // get the list of text runs
-       List textRuns = getTextRuns(textNode,
textNode.getAttributedCharacterIterator());
+       List textRuns = null;
+       try {
+           textRuns = getTextRuns(textNode,
textNode.getAttributedCharacterIterator());
+       }
+       catch (Exception exc) { return null; }

Because the solution above probably doesn't look good
I will post some test code where the error can be noticed,
but after some sleep.

Regards,
Jakub



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message