trackeditor: fix some units

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8420 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 1c78df54cba700eae5a7731c497463d478a8e2ff
Former-commit-id: 5a4966c4d02542a3bd60c0e189c46a9dd5faa266
This commit is contained in:
iobyte 2022-08-21 13:14:16 +00:00
parent 6873e42533
commit d74b5343f9
2 changed files with 11 additions and 11 deletions

View file

@ -756,12 +756,12 @@ public class XmlReader
shape.setProfil(getAttrStrValue(seg, "profil"));
shape.setProfilSteps(getAttrNumValue(seg, "profil steps"));
shape.setProfilStepsLength(getAttrNumValue(seg, "profil steps length", "m"));
shape.setProfilStartTangent(getAttrNumValue(seg, "profil start tangent"));
shape.setProfilEndTangent(getAttrNumValue(seg, "profil end tangent"));
shape.setProfilStartTangentLeft(getAttrNumValue(seg, "profil start tangent left"));
shape.setProfilEndTangentLeft(getAttrNumValue(seg, "profil end tangent left"));
shape.setProfilStartTangentRight(getAttrNumValue(seg, "profil start tangent right"));
shape.setProfilEndTangentRight(getAttrNumValue(seg, "profil end tangent right"));
shape.setProfilStartTangent(getAttrNumValue(seg, "profil start tangent", "%"));
shape.setProfilEndTangent(getAttrNumValue(seg, "profil end tangent", "%"));
shape.setProfilStartTangentLeft(getAttrNumValue(seg, "profil start tangent left", "%"));
shape.setProfilEndTangentLeft(getAttrNumValue(seg, "profil end tangent left", "%"));
shape.setProfilStartTangentRight(getAttrNumValue(seg, "profil start tangent right", "%"));
shape.setProfilEndTangentRight(getAttrNumValue(seg, "profil end tangent right", "%"));
setSide(seg, left, "Left");
setSide(seg, right, "Right");

View file

@ -314,12 +314,12 @@ public class XmlWriter
addContent(segment, "profil", shape.getProfil());
addContent(segment, "profil steps", "m", shape.getProfilSteps());
addContent(segment, "profil steps length", "m", shape.getProfilStepsLength());
addContent(segment, "profil start tangent", "m", shape.getProfilStartTangent());
addContent(segment, "profil start tangent", "%", shape.getProfilStartTangent());
addContent(segment, "profil end tangent", "%", shape.getProfilEndTangent());
addContent(segment, "profil start tangent left", "m", shape.getProfilStartTangentLeft());
addContent(segment, "profil end tangent left", "m", shape.getProfilEndTangentLeft());
addContent(segment, "profil start tangent right", "m", shape.getProfilStartTangentRight());
addContent(segment, "profil end tangent right", "m", shape.getProfilEndTangentRight());
addContent(segment, "profil start tangent left", "%", shape.getProfilStartTangentLeft());
addContent(segment, "profil end tangent left", "%", shape.getProfilEndTangentLeft());
addContent(segment, "profil start tangent right", "%", shape.getProfilStartTangentRight());
addContent(segment, "profil end tangent right", "%", shape.getProfilEndTangentRight());
addContent(segment, "surface", shape.getSurface());
com = new Comment("Left part of segment");
segment.addContent(com);