Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merged r6385 into trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6386 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Jan 2, 2007
1 parent b21e21f commit 1377c2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/plugins/georeferencer/qgspointdialog.cpp
Expand Up @@ -136,6 +136,12 @@ QgsPointDialog::QgsPointDialog(QString layerPath, QgisIface* theQgisInterface,
QgsMapLayerRegistry* registry = QgsMapLayerRegistry::instance();
registry->addMapLayer(layer, FALSE);


// Set source SRS same as dest SRS, so that we don't do any transformation.
// Dest SRS is set by project defaults
// The CoordinateTransform should now be shortcircuited.
layer->coordinateTransform()->setSourceSRS(layer->coordinateTransform()->destSRS());

// add layer to map canvas
std::deque<QString> layers;
layers.push_back(layer->getLayerID());
Expand Down Expand Up @@ -459,8 +465,8 @@ void QgsPointDialog::deleteDataPoint(QgsPoint& coords)
#endif
if ((x*x + y*y) < maxDistSqr)
{
mPoints.erase(it);
delete *it;
mPoints.erase(it);
mCanvas->refresh();
break;
}
Expand Down

0 comments on commit 1377c2c

Please sign in to comment.