diff --git a/toolbox/gui/panel_surface.m b/toolbox/gui/panel_surface.m index f4d9f8faa..91f1540f3 100644 --- a/toolbox/gui/panel_surface.m +++ b/toolbox/gui/panel_surface.m @@ -201,7 +201,7 @@ jToggleResectLeft = gui_component('toggle', jPanelSurfaceResect, 'br center', 'Left', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectLeftToggle_Callback); jToggleResectRight = gui_component('toggle', jPanelSurfaceResect, '', 'Right', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectRightToggle_Callback); jToggleResectStruct = gui_component('toggle', jPanelSurfaceResect, '', 'Struct', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectStruct_Callback); - jButtonResectReset = gui_component('button', jPanelSurfaceResect, '', 'Reset', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectResetCallback); + jButtonResectReset = gui_component('button', jPanelSurfaceResect, '', 'Reset', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectResetCallback); jPanelOptions.add(jPanelSurfaceResect); % ===== SURFACE LABELS ===== @@ -285,7 +285,10 @@ function ButtonResectResetCallback(varargin) jSliderResectX.setValue(0); jSliderResectY.setValue(0); jSliderResectZ.setValue(0); - + jToggleResectLeft.setSelected(0); + jToggleResectRight.setSelected(0); + jToggleResectStruct.setSelected(0); + % Get handle to current 3DViz figure hFig = bst_figures('GetCurrentFigure', '3D'); if isempty(hFig)