From 2c99fbe7f61e922eced0078ecb2535fb1954cf1d Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Tue, 13 Jan 2026 09:38:34 -0500 Subject: [PATCH] Revert "GP-6299: Bail from getPreviousLayout if there are no layouts." This reverts commit 02c51234f46ea6f6ba48871d3db973e3ec615cb2. --- .../widgets/fieldpanel/internal/AnchoredLayoutHandler.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/internal/AnchoredLayoutHandler.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/internal/AnchoredLayoutHandler.java index c0ba1080a6..9ae9cbdcfc 100644 --- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/internal/AnchoredLayoutHandler.java +++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/internal/AnchoredLayoutHandler.java @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -196,9 +196,6 @@ public class AnchoredLayoutHandler { if (layout != null) { return new AnchoredLayout(layout, index, yPos - layout.getHeight()); } - if (layouts.isEmpty()) { - return null; - } } return null; }