seqPanel.seqCanvas.highlightSearchResults( results );\r
\r
// do we need to scroll the panel?\r
- if(av.getStartSeq()>results[0] || av.getEndSeq()<results[0] || av.getStartRes()>results[1] || av.getEndRes()<results[2])\r
+ if(results!=null && (av.getStartSeq()>results[0]\r
+ || av.getEndSeq()<results[0]\r
+ || av.getStartRes()>results[1]\r
+ || av.getEndRes()<results[2]))\r
setScrollValues(results[1], results[0]);\r
\r
\r
public void RefreshPanels()\r
{\r
invalidate();\r
- validate();\r
seqPanel.seqCanvas.paintFlag = true;\r
idPanel.idCanvas.paintFlag = true;\r
idPanelHolder.setPreferredSize( idPanel.idCanvas.getPreferredSize() );\r
setScrollValues(av.getStartRes(), av.getStartSeq());\r
av.getConsensus(true);\r
repaint();\r
-\r
+ validate();\r
if(overviewPanel!=null)\r
overviewPanel.updateOverviewImage();\r
\r