1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

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
This commit is contained in:
zedamota 2010-09-25 19:31:09 +00:00 committed by zedamota
parent 467bb42b02
commit 06e07fef2f
2 changed files with 3 additions and 5 deletions

View File

@ -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())
{

View File

@ -3,4 +3,4 @@ CONFIG += ordered
SUBDIRS = core
SUBDIRS += internals
SUBDIRS += mapwidget
#SUBDIRS +=finaltest
SUBDIRS +=finaltest