Problem loading SVG images from Vengine.jar

Hi Joel,

I have been doing some work on IconSets and it is going very well. One problem I have is that while I can use an ImageOp to load a PNG image out of Vengine.jar, it does not seem possible to load an SVG image out of Vengine.jar.

/images/dialog-ok-small.png loads correctly but /images/dialog-ok-small.svg does not.

I had a bit of a play with it and found the SourceOp SVG implementations do not take resources into account. I tried to fix it without success. If you can have a look, I would appreciate it.

Cheers,
Brent.

Thus spake “Brent Easton”:

There’s a temporary fix for this in trunk@4048. It’s temporary, because
the right way to do it it not to mess with getting the right path from
within SourceOpSVGImpl like I am, but instead have the DataArchive figure
out the correct path.

I’ll fix this properly tomorrow. It’s going to involve reworking a few
methods in DataArchive so that they’re less crazy (which is fine, since
even after deprecating 45% of the code there, it’s still a mess).


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake Joel Uckelman:

I’ve booked a more durable fix in trunk@4050.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)