Hello,

I have a weird problem with JSVGCanvas and text selection.

I have a piece of code that highlights a text node using the code:

Mark startMark = textNode.getMarkerForChar(aci.getBeginIndex(), true);
Mark endMark = textNode.getMarkerForChar(aci.getEndIndex(), false);

svgCanvas.select(startMark, endMark);

This highlights the text. It would come back to its non-highlighted status using:

svgCanvas.deselectAll();

This code worked perfectly with Batik 1.5, but the svgCanvas.deselectAll() doesn't have any effect with Batik 1.5.1 libraries.
The code is the same, but with the old distribution of libraries it works, while with the new it doesn't.


Reading the changes, I see in Batik 1.5.1 README.txt "Clearing text selection now works".

What can be the cause of that? Maybe some errors were solved with the new release, but it is supposed to be used diferently?

Thanks in advance for any replay,

Ignacio Leon



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



Reply via email to