Skip to content

Commit

Permalink
getDatabasePager clear when changing 3D settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Jul 5, 2011
1 parent 9da6afc commit 0cbd8a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/globe/globe_plugin.cpp
Expand Up @@ -70,7 +70,7 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
mQActionSettingsPointer( NULL ),
viewer(),
mQDockWidget( tr( "Globe" ) ),
mSettingsDialog( theQgisInterface->mainWindow(), QgisGui::ModalDialogFlags ),
mSettingsDialog( &viewer, theQgisInterface->mainWindow(), QgisGui::ModalDialogFlags ),
mTileSource( 0 ),
mQgisMapLayer( 0 ),
mElevationManager( NULL ),
Expand Down
5 changes: 3 additions & 2 deletions src/plugins/globe/globe_plugin_dialog.cpp
Expand Up @@ -39,8 +39,8 @@
#include <osg/DisplaySettings>

//constructor
QgsGlobePluginDialog::QgsGlobePluginDialog( QWidget* parent, Qt::WFlags fl )
: QDialog( parent, fl )
QgsGlobePluginDialog::QgsGlobePluginDialog( QgsOsgViewer* viewer, QWidget* parent, Qt::WFlags fl )
: mViewer(viewer), QDialog( parent, fl )
{
setupUi( this );
loadStereoConfig(); //values from settings, default values from OSG
Expand Down Expand Up @@ -437,6 +437,7 @@ void QgsGlobePluginDialog::setStereoMode()

void QgsGlobePluginDialog::setStereoConfig()
{
mViewer->getDatabasePager()->clear();
//SETTING THE VALUES IN THE OEGearth instance
setStereoMode();
osg::DisplaySettings::instance()->setScreenDistance( screenDistance->value() );
Expand Down

0 comments on commit 0cbd8a3

Please sign in to comment.