From cbc4934969890599b7360f9ff698b9ceebb9933c Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 19 Apr 2011 13:56:07 +0000 Subject: [PATCH] avoid race condition when featureRenderer for structure is updated by its associated view. --- src/jalview/gui/FeatureRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 1.7.10.2