Skip to content
Permalink
Browse files

Merge pull request #2658 from SebDieBln/FixWarningQLayout

[Bugfix] Avoid a warning when opening QgsScaleVisibilityDialog
  • Loading branch information
3nids committed Jan 11, 2016
2 parents 2ac5fab + cbb426b commit c20ac6f9791fff9c51c8c0fcd8a76e15fb39bfdc
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/gui/qgsscalevisibilitydialog.cpp
@@ -36,7 +36,7 @@ QgsScaleVisibilityDialog::QgsScaleVisibilityDialog( QWidget *parent, const QStri
mGroupBox->setCheckable( true );
mGroupBox->setTitle( tr( "Scale visibility " ) );

QGridLayout* gbLayout = new QGridLayout( this );
QGridLayout* gbLayout = new QGridLayout( mGroupBox );
//gbLayout->setContentsMargins( 0, 0, 0, 0 );

mScaleWidget = new QgsScaleRangeWidget( this );
@@ -45,7 +45,6 @@ QgsScaleVisibilityDialog::QgsScaleVisibilityDialog( QWidget *parent, const QStri
mScaleWidget->setMapCanvas( mapCanvas );
}
gbLayout->addWidget( mScaleWidget, 0, 0 );
mGroupBox->setLayout( gbLayout );

QDialogButtonBox* buttonBox = new QDialogButtonBox( QDialogButtonBox::Cancel | QDialogButtonBox::Ok, Qt::Horizontal, this );
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );

0 comments on commit c20ac6f

Please sign in to comment.
You can’t perform that action at this time.