Skip to content

Commit 0cbd8a3

Browse files
committedJul 5, 2011
getDatabasePager clear when changing 3D settings
1 parent 9da6afc commit 0cbd8a3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎src/plugins/globe/globe_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
7070
mQActionSettingsPointer( NULL ),
7171
viewer(),
7272
mQDockWidget( tr( "Globe" ) ),
73-
mSettingsDialog( theQgisInterface->mainWindow(), QgisGui::ModalDialogFlags ),
73+
mSettingsDialog( &viewer, theQgisInterface->mainWindow(), QgisGui::ModalDialogFlags ),
7474
mTileSource( 0 ),
7575
mQgisMapLayer( 0 ),
7676
mElevationManager( NULL ),

‎src/plugins/globe/globe_plugin_dialog.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
#include <osg/DisplaySettings>
4040

4141
//constructor
42-
QgsGlobePluginDialog::QgsGlobePluginDialog( QWidget* parent, Qt::WFlags fl )
43-
: QDialog( parent, fl )
42+
QgsGlobePluginDialog::QgsGlobePluginDialog( QgsOsgViewer* viewer, QWidget* parent, Qt::WFlags fl )
43+
: mViewer(viewer), QDialog( parent, fl )
4444
{
4545
setupUi( this );
4646
loadStereoConfig(); //values from settings, default values from OSG
@@ -437,6 +437,7 @@ void QgsGlobePluginDialog::setStereoMode()
437437

438438
void QgsGlobePluginDialog::setStereoConfig()
439439
{
440+
mViewer->getDatabasePager()->clear();
440441
//SETTING THE VALUES IN THE OEGearth instance
441442
setStereoMode();
442443
osg::DisplaySettings::instance()->setScreenDistance( screenDistance->value() );

0 commit comments

Comments
 (0)
Please sign in to comment.