Comment 10 for bug 71085

Revision history for this message
Bjoern Koch (h.humpel) wrote :

FINALLY I figured out what caused all the flooding in the logs when writing data to the plotter element.

In TargetPlotter.py the plotter element "generates" an SVG like this:
<svg><rect width="100" height="100" ... /></svg>
and passes it to TargetCanvas.py to render it.

But in TagetCanvas.py the root element of the SVG needs to have a width and a height attribute, otherwise the famous UserError (Error: Desklet contains errors. Please contact the author!) is raised. And as the root element is <svg> and it didn't have a width and a height attribute...

So now TarbetPlotter.py generates an SVG like this:
<svg width="100" height="100"><rect width="100" height="100" ... /></svg>
and the plotter element seems to be working fine without errors in the log ;).

Fix committed in rev. #144.