JAL-3186 avoid repainting twice in splitframe
authorJim Procter <jprocter@issues.jalview.org>
Fri, 21 Feb 2020 15:10:57 +0000 (15:10 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 21 Feb 2020 15:10:57 +0000 (15:10 +0000)
src/jalview/gui/AlignFrame.java

index 7c0c55c..b7d8b3a 100644 (file)
@@ -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