Add volatile modifier to ColorSelector.selector

This commit is contained in:
Federico Bond
2014-09-14 22:43:33 -03:00
parent 0da8a76f95
commit 0852e0e64d

View File

@@ -43,7 +43,7 @@ public class ColorSelector implements Tool {
* Only create one instance, otherwise we'll have dozens of animation
* threads going if you open/close a lot of editor windows.
*/
static ColorChooser selector;
private static volatile ColorChooser selector;
private Editor editor;