diff --git a/core/src/net/sf/openrocket/gui/print/visitor/TransitionStrategy.java b/core/src/net/sf/openrocket/gui/print/visitor/TransitionStrategy.java index b6f1ee042..bc3768691 100644 --- a/core/src/net/sf/openrocket/gui/print/visitor/TransitionStrategy.java +++ b/core/src/net/sf/openrocket/gui/print/visitor/TransitionStrategy.java @@ -86,20 +86,21 @@ public class TransitionStrategy { * @return true if a transition/nosecone was rendered */ protected boolean goDeep(final List theRc, boolean noseCones) { + boolean result = false; for (RocketComponent rocketComponent : theRc) { if (rocketComponent instanceof NoseCone) { if (noseCones) { - return render((Transition) rocketComponent); + result |= render((Transition) rocketComponent); } } else if (rocketComponent instanceof Transition && !noseCones) { - return render((Transition) rocketComponent); + result |= render((Transition) rocketComponent); } else if (rocketComponent.getChildCount() > 0) { - return goDeep(rocketComponent.getChildren(), noseCones); + result |= goDeep(rocketComponent.getChildren(), noseCones); } } - return false; + return result; } /**