Skip to content

Commit 878b7bf

Browse files
author
g_j_m
committed
Make sure that the start of the spatial reference system text is visible in
the line edit widget (rather than the end of it, as happen if the text is longer than the available space). git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6003 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 56d9502 commit 878b7bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui/qgsvectorlayerproperties.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(QgsVectorLayer * lyr,
7777
if ( layer->coordinateTransform() )
7878
{
7979
leSpatialRefSys->setText(layer->coordinateTransform()->sourceSRS().proj4String());
80+
leSpatialRefSys->setCursorPosition(0);
8081
}
8182
connect(sliderTransparency, SIGNAL(valueChanged(int)), this, SLOT(sliderTransparency_valueChanged(int)));
8283

@@ -597,4 +598,5 @@ void QgsVectorLayerProperties::on_pbnChangeSpatialRefSys_clicked()
597598
}
598599
delete mySelector;
599600
leSpatialRefSys->setText(layer->coordinateTransform()->sourceSRS().proj4String());
601+
leSpatialRefSys->setCursorPosition(0);
600602
}

0 commit comments

Comments
 (0)