Skip to content

Commit

Permalink
WIP: ignore tspan (for the moment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Oster committed Oct 6, 2024
1 parent e8ddbb7 commit d65d5f7
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@
**/
package de.thomas_oster.visicut.model.graphicelements.svgsupport;

import com.kitfox.svg.Defs;
import com.kitfox.svg.Gradient;
import com.kitfox.svg.Group;
import com.kitfox.svg.ImageSVG;
import com.kitfox.svg.PatternSVG;
import com.kitfox.svg.SVGConst;
import com.kitfox.svg.SVGElement;
import com.kitfox.svg.SVGException;
import com.kitfox.svg.SVGRoot;
import com.kitfox.svg.SVGUniverse;
import com.kitfox.svg.ShapeElement;
import com.kitfox.svg.*;
import com.kitfox.svg.xml.NumberWithUnits;
import com.kitfox.svg.xml.StyleAttribute;
import de.thomas_oster.liblasercut.platform.Util;
Expand Down Expand Up @@ -106,6 +96,10 @@ private void importNode(SVGElement e, List<GraphicObject> result, double svgReso
result.add(new SVGImage((ImageSVG) e));
}
}
//Do not import tspan children
if (e instanceof Text) {
return;
}
for (int i = 0; i < e.getNumChildren(); i++)
{
importNode(e.getChild(i), result, svgResolution, warnings);
Expand Down

0 comments on commit d65d5f7

Please sign in to comment.