Skip to content

Commit 5c24882

Browse files
committed
1 parent 83ee972 commit 5c24882

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎src/main/java/sc/fiji/snt/PathAndFillManager.java‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,17 +1830,14 @@ public void startElement(final String uri, final String localName,
18301830
final String tYString = attributes.getValue("ty");
18311831
final String tZString = attributes.getValue("tz");
18321832

1833-
if (radiusString != null && tXString != null && tYString != null && tZString != null) {
1834-
// Set radius and tangents for the current node
1835-
final double radius = Double.parseDouble(radiusString);
1836-
current_path.setNodeRadius(radius, lastIndex);
1833+
if (radiusString != null) {
1834+
current_path.setNodeRadius(Double.parseDouble(radiusString), lastIndex);
1835+
}
1836+
if (tXString != null && tYString != null && tZString != null) {
18371837
final double tx = Double.parseDouble(tXString);
18381838
final double ty = Double.parseDouble(tYString);
18391839
final double tz = Double.parseDouble(tZString);
18401840
current_path.setNodeTangent(new double[]{tx, ty, tz}, lastIndex);
1841-
} else if (radiusString != null || tXString != null || tYString != null || tZString != null) {
1842-
throw new TracesFileFormatException(
1843-
"If one of the r, tx, ty or tz attributes to the point element is specified, they all must be");
18441841
}
18451842

18461843
final String vString = attributes.getValue("v");

0 commit comments

Comments
 (0)