{
if (getConservationSelected())
{
- int retry = 0;
- synchronized (this)
- {
- while (isCalcInProgress() && retry < 10)
- {
- try
- {
- wait(50);
- retry++;
- } catch (InterruptedException e)
- {
- }
- }
- }
residueShading.setConservation(hconservation);
}
+ /*
+ * reset conservation flag in case just set to false if
+ * Conservation was null (calculation still in progress)
+ */
+ residueShading.setConservationApplied(getConservationSelected());
residueShading.alignmentChanged(alignment, hiddenRepSequences);
}