Skip to content
Permalink
Browse files

turn start/end into first/last (note: f<l vs. s>e) in identify dialog…

… and make them translatable

git-svn-id: http://svn.osgeo.org/qgis/trunk@11054 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jul 13, 2009
1 parent f9c20e8 commit b2cb4b2cc05a2110a8521f6ef1e9b08f99efc2f0
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgsmaptoolidentify.cpp
@@ -352,13 +352,13 @@ void QgsMapToolIdentify::identifyVectorLayer( const QgsPoint& point )
{
// Add the start and end points in as derived attributes
str.setNum( f_it->geometry()->asPolyline().first().x(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, "startX", str );
mResults->addDerivedAttribute( featureNode, tr("firstX"), str );
str.setNum( f_it->geometry()->asPolyline().first().y(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, "startY", str );
mResults->addDerivedAttribute( featureNode, tr("firstY"), str );
str.setNum( f_it->geometry()->asPolyline().last().x(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, "endX", str );
mResults->addDerivedAttribute( featureNode, tr("lastX"), str );
str.setNum( f_it->geometry()->asPolyline().last().y(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, "endY", str );
mResults->addDerivedAttribute( featureNode, tr("lastY"), str );
}
}
else if ( layer->geometryType() == QGis::Polygon )

0 comments on commit b2cb4b2

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