This commit is contained in:
Jesse Boyd 2017-06-20 19:16:33 +10:00
parent 043f1e6002
commit 841dccb345
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -75,7 +75,7 @@ public class BrushTool implements DoubleActionTraceTool, ScrollTool, MovableTool
private transient BrushSettings context = new BrushSettings(); private transient BrushSettings context = new BrushSettings();
private transient BrushSettings primary = context; private transient BrushSettings primary = context;
private transient BrushSettings secondary = context; private transient BrushSettings secondary = new BrushSettings();
private transient VisualExtent visualExtent; private transient VisualExtent visualExtent;
private transient Lock lock = new ReentrantLock(); private transient Lock lock = new ReentrantLock();
@ -392,6 +392,9 @@ public class BrushTool implements DoubleActionTraceTool, ScrollTool, MovableTool
setContext(primary); setContext(primary);
break; break;
case SECONDARY: case SECONDARY:
if (primary == secondary) {
return false;
}
setContext(secondary); setContext(secondary);
break; break;
} }