Changeset - fca00b767eff
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 9 years ago 2017-03-13 06:00:29
hy@ozderya.net
scale bounding rect otherwise auto axis scale doesn't work
1 file changed with 11 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/framebufferseries.cpp
Show inline comments
 
@@ -50,8 +50,18 @@ QPointF FrameBufferSeries::sample(size_t
 
        return QPointF(i * (_xmax - _xmin) / size() + _xmin, _buffer->sample(i));
 
    }
 
}
 

	
 
QRectF FrameBufferSeries::boundingRect() const
 
{
 
    return _buffer->boundingRect();
 
    if (xAsIndex)
 
    {
 
        return _buffer->boundingRect();
 
    }
 
    else
 
    {
 
        auto rect = _buffer->boundingRect();
 
        rect.setLeft(_xmin);
 
        rect.setRight(_xmax);
 
        return rect;
 
    }
 
}
0 comments (0 inline, 0 general)