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:
parent
467bb42b02
commit
06e07fef2f
@ -525,11 +525,9 @@ namespace mapcontrol
|
|||||||
}
|
}
|
||||||
void MapGraphicItem::SetZoomStep(int const& value)
|
void MapGraphicItem::SetZoomStep(int const& value)
|
||||||
{
|
{
|
||||||
double integer;
|
if(value-core->Zoom()>0 && value<= MaxZoom())
|
||||||
double remainder = modf (value , &integer);
|
|
||||||
if(integer-core->Zoom()>0 && value<= MaxZoom())
|
|
||||||
ConstructLastImage(value-core->Zoom());
|
ConstructLastImage(value-core->Zoom());
|
||||||
else
|
else if(value!=MaxZoom())
|
||||||
lastimage=QImage();
|
lastimage=QImage();
|
||||||
if(value > MaxZoom())
|
if(value > MaxZoom())
|
||||||
{
|
{
|
||||||
|
@ -3,4 +3,4 @@ CONFIG += ordered
|
|||||||
SUBDIRS = core
|
SUBDIRS = core
|
||||||
SUBDIRS += internals
|
SUBDIRS += internals
|
||||||
SUBDIRS += mapwidget
|
SUBDIRS += mapwidget
|
||||||
#SUBDIRS +=finaltest
|
SUBDIRS +=finaltest
|
||||||
|
Loading…
Reference in New Issue
Block a user