Skip to content

Commit beaa45e

Browse files
committedJan 26, 2016
Merge pull request #2705 from SebDieBln/FixVectorGridLock
[fTools] restore 1:1 ratio when checking 'Lock 1:1 ratio' checkbox
2 parents 21b095d + e4ee315 commit beaa45e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎python/plugins/fTools/tools/doVectorGrid.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(self, iface):
4848
QObject.connect(self.btnUpdate, SIGNAL("clicked()"), self.updateLayer)
4949
QObject.connect(self.btnCanvas, SIGNAL("clicked()"), self.updateCanvas)
5050
QObject.connect(self.chkAlign, SIGNAL("toggled(bool)"), self.chkAlignToggled)
51+
QObject.connect(self.chkLock, SIGNAL("toggled(bool)"), self.chkLockToggled)
5152
self.buttonOk = self.buttonBox_2.button(QDialogButtonBox.Ok)
5253
self.setWindowTitle(self.tr("Vector grid"))
5354
self.xMin.setValidator(QDoubleValidator(self.xMin))
@@ -334,6 +335,10 @@ def outFile(self):
334335
return
335336
self.outShape.setText(self.shapefileName)
336337

338+
def chkLockToggled(self, checked):
339+
if checked:
340+
self.spnY.setValue(self.spnX.value())
341+
337342
def chkAlignToggled(self):
338343
if self.chkAlign.isChecked():
339344
self.spnX.setEnabled(False)

0 commit comments

Comments
 (0)
Please sign in to comment.