From: jprocter Date: Tue, 19 Apr 2011 13:56:07 +0000 (+0000) Subject: avoid race condition when featureRenderer for structure is updated by its associated... X-Git-Tag: Release_2_7~221 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cbc4934969890599b7360f9ff698b9ceebb9933c;p=jalview.git avoid race condition when featureRenderer for structure is updated by its associated view. --- diff --git a/src/jalview/gui/FeatureRenderer.java b/src/jalview/gui/FeatureRenderer.java index db2ce7e..d613a30 100755 --- a/src/jalview/gui/FeatureRenderer.java +++ b/src/jalview/gui/FeatureRenderer.java @@ -211,7 +211,7 @@ public class FeatureRenderer implements jalview.api.FeatureRenderer * This is used by the Molecule Viewer and Overview to get the accurate * colourof the rendered sequence */ - public int findFeatureColour(int initialCol, SequenceI seq, int column) + public synchronized int findFeatureColour(int initialCol, SequenceI seq, int column) { if (!av.showSequenceFeatures) {