Skip to content
Permalink
Browse files

Greetings from Anita and Tim at the QGIS Hackfest in Vienna (Nov 2009…

…). We have just fixed bug #2011 (Crash using Identify Feature)...Wheeeeee

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11927 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Nov 6, 2009
1 parent fbeef37 commit eb29dc2b57eb9ce81cbf414b47aef8f622649487
Showing with 10 additions and 1 deletion.
  1. +8 −0 src/app/qgsmaptoolidentify.cpp
  2. +2 −1 src/app/qgsmaptoolidentify.h
@@ -72,6 +72,10 @@ void QgsMapToolIdentify::canvasReleaseEvent( QMouseEvent * e )
return;
}

if ( !mResults )
{
mResults = new QgsIdentifyResults( mCanvas, mCanvas->window() );
}
mResults->clear();

QSettings settings;
@@ -147,6 +151,10 @@ void QgsMapToolIdentify::canvasReleaseEvent( QMouseEvent * e )

void QgsMapToolIdentify::activate()
{
if ( !mResults )
{
mResults = new QgsIdentifyResults( mCanvas, mCanvas->window() );
}
mResults->activate();
QgsMapTool::activate();
}
@@ -24,6 +24,7 @@
#include "qgsdistancearea.h"

#include <QObject>
#include <QPointer>

class QgsIdentifyResults;
class QgsMapLayer;
@@ -71,7 +72,7 @@ class QgsMapToolIdentify : public QgsMapTool
bool identifyVectorLayer( QgsVectorLayer *layer, int x, int y );

//! Pointer to the identify results dialog for name/value pairs
QgsIdentifyResults *mResults;
QPointer<QgsIdentifyResults> mResults;

//! Private helper
void convertMeasurement( QgsDistanceArea &calc, double &measure, QGis::UnitType &u, bool isArea );

0 comments on commit eb29dc2

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