Make the first click zoom in from fully expanded

This commit is contained in:
Mark Watkins 2011-08-29 09:52:07 +10:00
parent 5d62b6d762
commit d1c717617a

View File

@ -474,7 +474,7 @@ void gGraph::mouseReleaseEvent(QMouseEvent * event)
//if (xx==qq) xx=1800000; //if (xx==qq) xx=1800000;
xmult=qq/double(w); xmult=qq/double(w);
if (x==m_lastx23) { if ((xx==qq) || (x==m_lastx23)) {
if (event->button() & Qt::RightButton) { if (event->button() & Qt::RightButton) {
xx*=1.33; xx*=1.33;
} else if (event->button() & Qt::LeftButton) { } else if (event->button() & Qt::LeftButton) {