+ if((int)(row*sampleRow)==lastrow)\r
+ {\r
+ //No need to recalculate the colours,\r
+ //Just copy from the row above\r
+ for (col = 0; col < width; col++)\r
+ {\r
+ miniMe.setRGB(col, row, miniMe.getRGB(col, row-1));\r
+ }\r
+ continue;\r
+ }\r
+\r
+ lastrow = (int)(row*sampleRow);\r
+\r
+ hiddenRow = false;\r
+ if (av.hasHiddenRows)\r
+ {\r
+ seq = av.alignment.getHiddenSequences().getHiddenSequence(lastrow);\r
+ if (seq == null)\r
+ {\r
+ int index =\r
+ av.alignment.getHiddenSequences().findIndexWithoutHiddenSeqs(lastrow);\r
+\r
+ seq = av.alignment.getSequenceAt(index);\r
+ }\r
+ else\r
+ {\r
+ hiddenRow = true;\r
+ }\r
+ }\r
+ else\r
+ seq = av.alignment.getSequenceAt(lastrow);\r
+\r
+ if(seq==null)\r
+ {\r
+ System.out.println(lastrow+" null");\r
+ continue;\r
+ }\r
+\r