Skip to content

Commit

Permalink
Fix small memory leak
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11647 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 13, 2009
1 parent e9ac701 commit 0e83e83
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/app/composer/qgscomposermapwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ QgsComposerMapWidget::QgsComposerMapWidget( QgsComposerMap* composerMap ): QWidg
//add widget for general composer item properties
QgsComposerItemWidget* itemPropertiesWidget = new QgsComposerItemWidget( this, composerMap );
gridLayout->addWidget( itemPropertiesWidget, 9, 0, 1, 5 );
QDoubleValidator v( 0 );

mWidthLineEdit->setValidator( new QDoubleValidator( 0 ) );
mHeightLineEdit->setValidator( new QDoubleValidator( 0 ) );
mScaleLineEdit->setValidator( new QDoubleValidator( 0 ) );
mWidthLineEdit->setValidator( &v );
mHeightLineEdit->setValidator( &v );
mScaleLineEdit->setValidator( &v );

mXMinLineEdit->setValidator( new QDoubleValidator( 0 ) );
mXMaxLineEdit->setValidator( new QDoubleValidator( 0 ) );
mYMinLineEdit->setValidator( new QDoubleValidator( 0 ) );
mYMaxLineEdit->setValidator( new QDoubleValidator( 0 ) );
mXMinLineEdit->setValidator( &v );
mXMaxLineEdit->setValidator( &v );
mYMinLineEdit->setValidator( &v );
mYMaxLineEdit->setValidator( &v );

mPreviewModeComboBox->insertItem( 0, tr( "Cache" ) );
mPreviewModeComboBox->insertItem( 1, tr( "Render" ) );
Expand Down

0 comments on commit 0e83e83

Please sign in to comment.