[PATCH] Fix GPS coordinates rounding.

Dirk Hohndel dirk at hohndel.org
Sat May 25 07:33:12 PDT 2013


On Sat, 2013-05-25 at 14:14 +0300, Sergey Starosek wrote:
> Signed-off-by: Sergey Starosek <sergey.starosek at gmail.com>
> ---
>  qt-ui/globe.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

I had a different fix to that bug pushed last night which simply
truncated the value, but rounding is of course the better answer. But if
we round, shouldn't we use lrint() instead of rint() as we are assigning
the result to an integer value?

/D



More information about the subsurface mailing list