Skip to content
Permalink
Browse files
Look for lat/long before looking for x/y column names
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5897 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 30, 2006
1 parent aca0329 commit c90276ece20a8a8c19be8f11a3c98e85efbc73d2
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/plugins/delimited_text/qgsdelimitedtextplugingui.cpp
@@ -129,17 +129,17 @@ void QgsDelimitedTextPluginGui::updateFieldLists()
}
// Have a go at setting the selected items in the X and Y
// combo boxes to something sensible.
int indexX = cmbXField->findText("X", Qt::MatchContains);
int indexY = cmbXField->findText("Y", Qt::MatchContains);
int indexX = cmbXField->findText("lon", Qt::MatchContains);
int indexY = cmbXField->findText("lat", Qt::MatchContains);
if (indexX != -1 && indexY != -1)
{
cmbXField->setCurrentIndex(indexX);
cmbYField->setCurrentIndex(indexY);
}
else
{
indexX = cmbXField->findText("lon", Qt::MatchContains);
indexY = cmbXField->findText("lat", Qt::MatchContains);
indexX = cmbXField->findText("x", Qt::MatchContains);
indexY = cmbXField->findText("y", Qt::MatchContains);
if (indexX != -1 && indexY != -1)
{
cmbXField->setCurrentIndex(indexX);

0 comments on commit c90276e

Please sign in to comment.