# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2017-04-13 14:07:35 # Node ID e3e70c85583663f108eba4facd88904fce38e1c3 # Parent d4a271f3d46a61e4119e6f55afd478db51fe7a6e don't try accessing the point list if there is not enough points diff --git a/src/zoomer.cpp b/src/zoomer.cpp --- a/src/zoomer.cpp +++ b/src/zoomer.cpp @@ -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]").\