Lubomir I. Ivanov 609036c570 Ruler: fix weird behaviour near x = 0
RulerNodeItem2::recalculate() does something which is
apparently not a good idea in combination with
RulerNodeItem2::mouseMoveEvent().

Each time the mouse moves, setPos() is called. Then in
recalculate() the x() value is checked and if less than 0
it's changed to x = 0 (setPos(0, y());).

This last call (setPos(0, y());)
however does not work and the value remains less than zero
leaving one of the ruler points outside of the graph.

To solve the issue we add a silly explicit check if x() < 0
before calling setPos() in RulerNodeItem2::mouseMoveEvent().

The 'x() > timeAxis->posAtValue(data->sec)' strangely works
on the other hand.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-11-17 21:04:27 +00:00
..
2014-06-26 15:47:02 -07:00
2014-02-08 08:00:27 -08:00
2014-10-14 20:33:46 +02:00
2014-10-14 20:33:46 +02:00
2014-10-14 20:33:46 +02:00
2014-06-26 15:47:02 -07:00
2014-10-27 07:35:53 -07:00
2014-06-26 15:47:02 -07:00
2014-10-15 22:53:10 +02:00
2014-11-17 06:02:21 +00:00
2014-11-17 06:02:21 +00:00
2014-11-12 10:18:26 -08:00
2014-11-17 18:19:51 +00:00
2014-11-13 14:27:30 -08:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2014-09-18 06:24:05 -07:00
2014-10-19 07:24:15 -07:00
2014-11-17 06:02:21 +00:00
2014-11-17 06:02:21 +00:00
2014-07-18 10:21:42 -07:00
2014-08-08 11:13:05 -07:00
2014-07-16 09:11:04 -07:00