mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Bug fix - order of automatic/manual radio button id's changed on me, so
code was interpreting automatic as manual and vica-versa. git-svn-id: http://svn.osgeo.org/qgis/trunk@2630 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
f3d6187811
commit
8ea753eccb
@ -102,9 +102,9 @@ QgsProjectProperties::QgsProjectProperties(QWidget *parent, const char *name)
|
||||
// position display is set (manual or automatic)
|
||||
bool automaticPrecision = QgsProject::instance()->readBoolEntry("PositionPrecision","/Automatic");
|
||||
if (automaticPrecision)
|
||||
btnGrpPrecision->setButton(1);
|
||||
else
|
||||
btnGrpPrecision->setButton(0);
|
||||
else
|
||||
btnGrpPrecision->setButton(1);
|
||||
|
||||
int dp = QgsProject::instance()->readNumEntry("PositionPrecision", "/DecimalPlaces");
|
||||
spinBoxDP->setValue(dp);
|
||||
@ -211,7 +211,7 @@ void QgsProjectProperties::apply()
|
||||
|
||||
// set the mouse display precision method and the
|
||||
// number of decimal places for the manual option
|
||||
if (btnGrpPrecision->selectedId() == 1)
|
||||
if (btnGrpPrecision->selectedId() == 0)
|
||||
QgsProject::instance()->writeEntry("PositionPrecision","/Automatic", true);
|
||||
else
|
||||
QgsProject::instance()->writeEntry("PositionPrecision","/Automatic", false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user