File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 39493949 painter . SetDivId ( divid ) ; // now add to painters list
39503950
39513951 painter . AddButton ( JSROOT . ToolbarIcons . camera , "Create PNG" , "CanvasSnapShot" ) ;
3952- painter . AddButton ( JSROOT . ToolbarIcons . question , "Access context menus" , "PadContextMenus" ) ;
3952+ if ( JSROOT . gStyle . ContextMenu )
3953+ painter . AddButton ( JSROOT . ToolbarIcons . question , "Access context menus" , "PadContextMenus" ) ;
39533954
39543955 if ( can == null ) {
39553956 if ( opt . indexOf ( "noframe" ) < 0 )
39773978
39783979 if ( painter . MatchObjectType ( "TPad" ) && ( ! painter . has_canvas || painter . HasObjectsToDraw ( ) ) ) {
39793980 painter . AddButton ( JSROOT . ToolbarIcons . camera , "Create PNG" , "PadSnapShot" ) ;
3980- painter . AddButton ( JSROOT . ToolbarIcons . question , "Access context menus" , "PadContextMenus" ) ;
3981+ if ( JSROOT . gStyle . ContextMenu )
3982+ painter . AddButton ( JSROOT . ToolbarIcons . question , "Access context menus" , "PadContextMenus" ) ;
39813983 }
39823984
39833985 var prev_name = "" ;
You can’t perform that action at this time.
0 commit comments