Skip to content

Commit

Permalink
turn start/end into first/last (note: f<l vs. s>e) in identify dialog…
Browse files Browse the repository at this point in the history
… and make them translatable

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11054 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jul 13, 2009
1 parent 7e7bf49 commit fe0d4be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsmaptoolidentify.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit fe0d4be

Please sign in to comment.