summaryrefslogtreecommitdiff
path: root/tests/auto/geotestplugin/qgeotiledmap_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/geotestplugin/qgeotiledmap_test.cpp')
-rw-r--r--tests/auto/geotestplugin/qgeotiledmap_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/geotestplugin/qgeotiledmap_test.cpp b/tests/auto/geotestplugin/qgeotiledmap_test.cpp
index 62abb313..c3d466ea 100644
--- a/tests/auto/geotestplugin/qgeotiledmap_test.cpp
+++ b/tests/auto/geotestplugin/qgeotiledmap_test.cpp
@@ -98,9 +98,8 @@ QGeoTiledMapTest::QGeoTiledMapTest(QGeoTiledMappingManagerEngine *engine,
void QGeoTiledMapTest::onCameraCenter_testChanged(QGeoMapParameter *param, const char *propertyName)
{
- Q_D(QGeoTiledMapTest);
if (strcmp(propertyName, "center") == 0) {
- QGeoCameraData cameraData = d->m_cameraData;
+ QGeoCameraData cameraData = this->cameraData();
// Not testing for propertyName as this param has only one allowed property
QGeoCoordinate newCenter = param->property(propertyName).value<QGeoCoordinate>();
cameraData.setCenter(newCenter);