Changeset - e3e70c855836
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 8 years ago 2017-04-13 14:07:35
hy@ozderya.net
don't try accessing the point list if there is not enough points
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/zoomer.cpp
Show inline comments
 
@@ -58,6 +58,11 @@ QwtText Zoomer::trackerTextF(const QPoin
 
    QwtText b = ScrollZoomer::trackerTextF(pos);
 

	
 
    const QPolygon pa = selection();
 
    if (pa.count() < 2)
 
    {
 
        return b;
 
    }
 

	
 
    const QRectF rect = invTransform(QRect(pa.first(), pa.last()).normalized());
 

	
 
    QString sizeText = QString(" [%1, %2]").\
0 comments (0 inline, 0 general)