mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 04:14:49 +00:00
Fixed: #2475 SVG Import - ignoring gradients caused by missing offset attribute of stop element
This commit is contained in:
@@ -557,8 +557,10 @@ class SvgStyle {
|
||||
Element stopEl = (Element) node;
|
||||
SvgStyle newStyle = new SvgStyle(importer, idMap, stopEl, cachedBitmaps);
|
||||
|
||||
String offsetStr = stopEl.getAttribute("offset");
|
||||
double offset = importer.parseNumberOrPercent(offsetStr);
|
||||
double offset = 0;
|
||||
if (stopEl.hasAttribute("offset")) {
|
||||
offset = importer.parseNumberOrPercent(stopEl.getAttribute("offset"));
|
||||
}
|
||||
Color color = newStyle.getStopColor();
|
||||
if (color == null) {
|
||||
color = Color.BLACK;
|
||||
|
||||
Reference in New Issue
Block a user