From 554132d1c5fd4f322d894181255ff4aa4058a249 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 6 Aug 2014 13:33:20 +1000 Subject: [PATCH] Really fix line cursor to mouse cursor sync :) --- sleepyhead/Graphs/gGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleepyhead/Graphs/gGraph.cpp b/sleepyhead/Graphs/gGraph.cpp index da0291a1..ecf35a09 100644 --- a/sleepyhead/Graphs/gGraph.cpp +++ b/sleepyhead/Graphs/gGraph.cpp @@ -704,7 +704,7 @@ void gGraph::mouseMoveEvent(QMouseEvent *event) double xmult = xx / double(w); { - xmult = (m_blockzoom ? (rmax_x - rmin_x) : (max_x - min_x)) / w; + xmult = (m_blockzoom ? double(rmax_x - rmin_x) : double(max_x - min_x)) / double(w); double a = x;