Changeset - ab0358c90be6
[Not reviewed]
stream
0 1 0
Hasan Yavuz Ă–ZDERYA - 7 years ago 2018-06-23 10:39:28
hy@ozderya.net
fix broken y axis auto scale
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/framebufferseries.cpp
Show inline comments
 
@@ -62,25 +62,25 @@ QRectF FrameBufferSeries::boundingRect()
 
    rect.setBottom(yLim.start);
 
    rect.setTop(yLim.end);
 
    if (xAsIndex)
 
    {
 
        rect.setLeft(0);
 
        rect.setRight(size());
 
    }
 
    else
 
    {
 
        rect.setLeft(_xmin);
 
        rect.setRight(_xmax);
 
    }
 
    return rect;
 
    return rect.normalized();
 
}
 

	
 
void FrameBufferSeries::setRectOfInterest(const QRectF& rect)
 
{
 
    if (xAsIndex)
 
    {
 
        int_index_start = floor(rect.left())-1;
 
        int_index_end = ceil(rect.right())+1;
 
    }
 
    else
 
    {
 
        double xsize = _xmax - _xmin;
0 comments (0 inline, 0 general)