| static { | ||
| FACTORY = new ChainedReplacedElementFactory(); | ||
| + | ||
| + // The order is important: Swing factory will replace SVG images with | ||
| + // a blank image, which will cause the chained factory to cache the image | ||
| + // and exit. Instead, the SVG must execute first to rasterize the content. | ||
| + // Consequently, the chained factory must maintain insertion order. | ||
| FACTORY.addFactory( new SvgReplacedElementFactory() ); | ||
| FACTORY.addFactory( new SwingReplacedElementFactory() ); |
| Author | DaveJarvis <email> |
|---|---|
| Date | 2020-12-29 15:58:48 GMT-0800 |
| Commit | 28bba972242005b9558da03955adfd7ea194b785 |
| Parent | 300ed49 |
| Delta | 5 lines added, 0 lines removed, 5-line increase |