From 45281279529211c2a8d2b8946d2c5722a06a308e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 21 Feb 2020 15:10:57 +0000 Subject: [PATCH] JAL-3186 avoid repainting twice in splitframe --- src/jalview/gui/AlignFrame.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 7c0c55c..b7d8b3a 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -4694,12 +4694,15 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, { if (parseFeaturesFile(file, sourceType)) { - alignPanel.paintAlignment(true, true); SplitFrame splitFrame = (SplitFrame) getSplitViewContainer(); if (splitFrame != null) { splitFrame.repaint(); } + else + { + alignPanel.paintAlignment(true, true); + } } } else -- 1.7.10.2