Fixed #20 - NPE gets caught when opening a damaged file and info popup

is shown
This commit is contained in:
Brita Keller
2019-12-03 22:19:56 +01:00
committed by Gitea
parent 7e2869b7ee
commit 3d043ce1b7
3 changed files with 16 additions and 2 deletions

View File

@ -158,6 +158,7 @@ public class WaveformViewer implements IWaveformViewer {
@Override
public void mouseUp(MouseEvent e) {
if(start==null) return;
if((e.stateMask&SWT.MODIFIER_MASK&~SWT.SHIFT)!=0) return; //don't react on modifier
if (e.button == 1 && ((e.stateMask&SWT.SHIFT)==0)) {
if(Math.abs(e.x-start.x)<3 && Math.abs(e.y-start.y)<3){