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/qgis@11054 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jul 13, 2009
1 parent 7e7bf49 commit fe0d4be9da4ec6708647fcb50ea4c6d5e879483a
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 fe0d4be

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