From 5340ff782c04b01a60463ddad2cb944affc306f4 Mon Sep 17 00:00:00 2001 From: Pavel Braginskiy Date: Fri, 27 Sep 2024 21:24:15 -0700 Subject: [PATCH] Fix incorrect pilot info box drawing --- megameklab/src/megameklab/printing/PrintRecordSheet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/megameklab/src/megameklab/printing/PrintRecordSheet.java b/megameklab/src/megameklab/printing/PrintRecordSheet.java index c3d45c8c6..1e3e270c4 100644 --- a/megameklab/src/megameklab/printing/PrintRecordSheet.java +++ b/megameklab/src/megameklab/printing/PrintRecordSheet.java @@ -268,8 +268,9 @@ private void shadeTableRows() { private void makeFrameless() { for (Element e : getElementsByClass(FRAME)) { - hideElement(e.getAttributes().getNamedItem("id").getNodeValue(), options.isFrameless()); if (options.isFrameless()) { + hideElement(e.getAttributes().getNamedItem("id").getNodeValue()); + // I have no idea with this loop is necessary // Hiding a parent should hide its children // But without it pilot data sneaks onto the sheet @@ -281,7 +282,7 @@ private void makeFrameless() { if (child.getId() == null) { child.setId(UUID.randomUUID().toString()); } - hideElement(child.getId(), true); + hideElement(child.getId()); } } }