File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 33## Changes in 4.4.x
441 . Fix - wrong selection of TH1 Y axis range when errors are displayed (#44 )
552 . Fix - apply user range for TH1 X-axis zooming (#44 )
6+ 3 . Fix - protect against patalogic case of 1-bin histogram
67
78
89## Changes in 4.4.2
Original file line number Diff line number Diff line change 59905990
59915991 grx = Math . round ( pmain . grx ( x ) ) ;
59925992
5993- if ( i === right ) {
5994- lastbin = true ;
5993+ lastbin = ( i === right ) ;
5994+
5995+ if ( lastbin && ( left < right ) ) {
59955996 gry = curry ;
59965997 } else {
59975998 y = this . histo . getBinContent ( i + 1 ) ;
60856086 }
60866087 }
60876088
6088- if ( this . fillatt . color !== 'none' ) {
6089+ if ( ( this . fillatt . color !== 'none' ) && ( res . length > 0 ) ) {
60896090 res += "L" + currx + "," + ( height + 3 ) ;
60906091 res += "L" + startx + "," + ( height + 3 ) ;
60916092 res += "Z" ;
61176118 return ;
61186119 }
61196120
6120- this . draw_g . append ( "svg:path" )
6121- . attr ( "d" , res )
6122- . style ( "stroke-linejoin" , "miter" )
6123- . call ( this . lineatt . func )
6124- . call ( this . fillatt . func ) ;
6121+ if ( res . length > 0 )
6122+ this . draw_g . append ( "svg:path" )
6123+ . attr ( "d" , res )
6124+ . style ( "stroke-linejoin" , "miter" )
6125+ . call ( this . lineatt . func )
6126+ . call ( this . fillatt . func ) ;
61256127
61266128 if ( ( JSROOT . gStyle . Tooltip === 1 ) && ( bins !== null ) )
61276129 this . draw_g . selectAll ( "rect" )
You can’t perform that action at this time.
0 commit comments