You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
AngleSlider has a serious bug in the setSelecition method. When it fire the selectionListeners it create a new Event(), then this event is used to build a selection event. But a selection event need to have in the passed event the filed widget set, otherwise it will trigger the IllegalAegumentSection. The fix is pretty easy and simple:
public void setSelection(final int selection) {
checkWidget();
if (selection < 0 || selection > 360) {
SWT.error(SWT.ERROR_CANNOT_SET_SELECTION);
}
this.selection = selection;
Event e = new Event();
e.widget = this;
fireSelectionListeners(e);
redraw();
}
The text was updated successfully, but these errors were encountered:
Hi,
AngleSlider has a serious bug in the setSelecition method. When it fire the selectionListeners it create a new Event(), then this event is used to build a selection event. But a selection event need to have in the passed event the filed widget set, otherwise it will trigger the IllegalAegumentSection. The fix is pretty easy and simple:
The text was updated successfully, but these errors were encountered: