hack for fastpaint Java bug upshifting one line after a sequence
[jalview.git] / src / jalview / gui / AlignmentPanel.java
index f27b9b7..4e5e72b 100644 (file)
@@ -731,7 +731,6 @@ public class AlignmentPanel extends GAlignmentPanel implements
       }
       ranges.setViewportStartAndHeight(y, height);
     }
-    seqPanel.seqCanvas.clearFastPaint();
     repaint();
   }
 
@@ -811,6 +810,12 @@ public class AlignmentPanel extends GAlignmentPanel implements
             av.isShowAutocalculatedAbove());
     sorter.sort(getAlignment().getAlignmentAnnotation(),
             av.getSortAnnotationsBy());
+    // BH 2019.04.18 this should not be necessary, but
+    // there is something wrong with the fast painting
+    // in that there is a -1 shift that should not be there.
+    // It is being covered in Java by the Consensus and Conservation
+    // threads forcing a full repaint after pasting.
+    seqPanel.seqCanvas.clearFastPaint();
     repaint();
 
     if (updateStructures)