DGP - Fix for bug#3032813

This commit is contained in:
Doug Pedrick 2010-07-22 18:26:31 +00:00
parent e80b64b53c
commit 7a01b87cf6
2 changed files with 4 additions and 1 deletions

View File

@ -277,7 +277,7 @@ class FinSetHandler extends ElementHandler {
if (shapeCode == 0) { if (shapeCode == 0) {
//Trapezoidal //Trapezoidal
result = new TrapezoidFinSet(); result = new TrapezoidFinSet();
((TrapezoidFinSet) result).setFinShape(rootChord, tipChord, sweepDistance, midChordLen, thickness); ((TrapezoidFinSet) result).setFinShape(rootChord, tipChord, sweepDistance, semiSpan, thickness);
} }
else if (shapeCode == 1) { else if (shapeCode == 1) {
//Elliptical //Elliptical

View File

@ -104,6 +104,9 @@ public class FinSetHandlerTest extends TestCase {
assertTrue(fins instanceof TrapezoidFinSet); assertTrue(fins instanceof TrapezoidFinSet);
assertEquals(4, fins.getFinCount()); assertEquals(4, fins.getFinCount());
assertEquals(0.012d, ((TrapezoidFinSet) fins).getHeight());
assertEquals(0.012d, fins.getSpan());
assertEquals(0.2d, fins.getThickness()); assertEquals(0.2d, fins.getThickness());
assertEquals(0.4d, fins.getTabLength()); assertEquals(0.4d, fins.getTabLength());
assertEquals(0.5d, fins.getTabHeight()); assertEquals(0.5d, fins.getTabHeight());