Skip to content
Permalink
Browse files

Fix crash with measure tool. Funded by Sourcepole QGIS Enterprise

  • Loading branch information
mhugent committed Oct 20, 2015
1 parent 07fae8f commit cac62018fa71a3d9050b88c552396939e1e2a4c9
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/app/qgsmeasuredialog.cpp
@@ -135,8 +135,11 @@ void QgsMeasureDialog::mouseMove( QgsPoint &point )

// Set moving
QTreeWidgetItem *item = mTable->topLevelItem( mTable->topLevelItemCount() - 1 );
item->setText( 0, QLocale::system().toString( d, 'f', mDecimalPlaces ) );
QgsDebugMsg( QString( "Final result is %1" ).arg( item->text( 0 ) ) );
if ( item )
{
item->setText( 0, QLocale::system().toString( d, 'f', mDecimalPlaces ) );
QgsDebugMsg( QString( "Final result is %1" ).arg( item->text( 0 ) ) );
}
}
}

0 comments on commit cac6201

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