Skip to content
Permalink
Browse files

Fix small memory leak

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11647 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Sep 13, 2009
1 parent 004d014 commit 4083ab0cc7bdf868854177111852beca1f245192
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/app/composer/qgscomposermapwidget.cpp
@@ -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" ) );

0 comments on commit 4083ab0

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