Thomas DeWeese wrote:
Hi Jorg,
Result: the new paths are now displayed properly but the logo is being displayed as well still. I checked the DOM tree and it's effectively gone there. With the next redraw (eg canvas resize or something) the logo disappears.
I don't suppose you can reproduce this?
It happens every time.
The removal code and the update code happen in the same updatemanager thread, nearly sequentially.It sounds to me like a race condition are 2a/b done together in the code or could the be done in different threads (not update thread?) or something?
I'm having a hard time understanding how you could possibly get this result if 2a happened before 2b in the UpdateManger thread.
There is some odd behaviour though, because even when i set the node in question to hidden before i remove it, it is still displayed. Only when i set it to hidden and don't remove it it is not displayed anymore.
Element logo = getSVGDocument().getElementById("logo");
if (logo != null) {
logo.setAttributeNS(null, "visibility", "hidden");
while (logo.hasChildNodes()) {
logo.removeChild(logo.getFirstChild());
}
// remove the logo
logo.getParentNode().removeChild(logo);
}Regards Jorg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
