summaryrefslogtreecommitdiff
path: root/src/imports
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-03-15 10:27:40 +0100
committerPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-03-15 10:34:37 +0000
commit3d8da84e368f87386f14287b10fb6d08e3ce2b48 (patch)
tree283276f688ffecbaeadda1893090405be1423876 /src/imports
parentb29d6b416af7ea2cd47ec72af1e083d91583db95 (diff)
downloadqtlocation-3d8da84e368f87386f14287b10fb6d08e3ce2b48.tar.gz
No matching function for call to 'qBound(double, qreal&, double)'" fix
For those machines that compiles with -qreal float, apparently Change-Id: I56922e24c8bb7ac611f4059875140c641feeb331 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/location/qdeclarativegeomap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/location/qdeclarativegeomap.cpp b/src/imports/location/qdeclarativegeomap.cpp
index 591bcd7f..c9dfe189 100644
--- a/src/imports/location/qdeclarativegeomap.cpp
+++ b/src/imports/location/qdeclarativegeomap.cpp
@@ -619,7 +619,7 @@ void QDeclarativeGeoMap::setMaximumZoomLevel(qreal maximumZoomLevel)
if (m_gestureArea && maximumZoomLevel >= 0) {
qreal oldMaximumZoomLevel = this->maximumZoomLevel();
if (m_mappingManagerInitialized) {
- maximumZoomLevel = qBound(m_map->minimumZoom(),maximumZoomLevel,m_mappingManager->cameraCapabilities().maximumZoomLevel());
+ maximumZoomLevel = qBound(m_map->minimumZoom(),double(maximumZoomLevel),m_mappingManager->cameraCapabilities().maximumZoomLevel());
}
m_gestureArea->setMaximumZoomLevel(maximumZoomLevel);