diff --git a/src/main/java/com/actelion/research/chem/descriptor/flexophore/FlexophoreAtomContributionColors.java b/src/main/java/com/actelion/research/chem/descriptor/flexophore/FlexophoreAtomContributionColors.java index 6575ffeb..f061a153 100644 --- a/src/main/java/com/actelion/research/chem/descriptor/flexophore/FlexophoreAtomContributionColors.java +++ b/src/main/java/com/actelion/research/chem/descriptor/flexophore/FlexophoreAtomContributionColors.java @@ -117,7 +117,7 @@ public float[] getRefRadius() { return mRefRadius; } - private int[] createDiverseColorList(int colorCount) { + public static int[] createDiverseColorList(int colorCount) { if (colorCount <= cDiverseColor.length) return cDiverseColor; diff --git a/src/main/java/com/actelion/research/gui/editor/GenericEditorArea.java b/src/main/java/com/actelion/research/gui/editor/GenericEditorArea.java index dce84617..2e49c39b 100644 --- a/src/main/java/com/actelion/research/gui/editor/GenericEditorArea.java +++ b/src/main/java/com/actelion/research/gui/editor/GenericEditorArea.java @@ -592,10 +592,11 @@ public void toolChanged(int newTool) { if (mCurrentTool != newTool) { if (mCurrentTool == GenericEditorToolbar.cToolMapper || newTool == GenericEditorToolbar.cToolMapper) { + mCurrentTool = newTool; update(UPDATE_REDRAW); + } else { + mCurrentTool = newTool; } - - mCurrentTool = newTool; } }