From 06e07fef2fcc2b0b698af4be6e21bc7dc27d9420 Mon Sep 17 00:00:00 2001 From: zedamota Date: Sat, 25 Sep 2010 19:31:09 +0000 Subject: [PATCH] OP37/GCS MapLib - Should stop black tiles on digital zooming git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1753 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp | 6 ++---- ground/src/libs/opmapcontrol/src/src.pro | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ground/src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp b/ground/src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp index bf6fc4c3e..5ac8b1c9e 100644 --- a/ground/src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp +++ b/ground/src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp @@ -525,11 +525,9 @@ namespace mapcontrol } void MapGraphicItem::SetZoomStep(int const& value) { - double integer; - double remainder = modf (value , &integer); - if(integer-core->Zoom()>0 && value<= MaxZoom()) + if(value-core->Zoom()>0 && value<= MaxZoom()) ConstructLastImage(value-core->Zoom()); - else + else if(value!=MaxZoom()) lastimage=QImage(); if(value > MaxZoom()) { diff --git a/ground/src/libs/opmapcontrol/src/src.pro b/ground/src/libs/opmapcontrol/src/src.pro index b676d74dc..111ea8246 100644 --- a/ground/src/libs/opmapcontrol/src/src.pro +++ b/ground/src/libs/opmapcontrol/src/src.pro @@ -3,4 +3,4 @@ CONFIG += ordered SUBDIRS = core SUBDIRS += internals SUBDIRS += mapwidget -#SUBDIRS +=finaltest +SUBDIRS +=finaltest