Skip to content

Commit 1eb6e82

Browse files
7.7.1
1 parent 80d8dcc commit 1eb6e82

21 files changed

Lines changed: 27849 additions & 27837 deletions

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def description():
4242

4343

4444
def version():
45-
return 'Version 7.7.0 - Matera'
45+
return 'Version 7.7.1 - Matera'
4646

4747

4848
def icon():

core/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,10 @@ def importShapefile(self):
18571857
cIdF = self.fieldID(tSS, cfg.ui.C_ID_combo.currentText())
18581858
cInfoF = self.fieldID(tSS, cfg.ui.C_Info_combo.currentText())
18591859
for f in tSS.getFeatures():
1860+
oFid = cfg.shpLay.fields().indexFromName('fid')
1861+
mFid = cfg.shpLay.maximumValue(oFid) + 1
1862+
if mFid < 1:
1863+
mFid = 1
18601864
cfg.shpLay.startEditing()
18611865
aF = f.geometry()
18621866
if pCrs != tCrs:
@@ -1878,7 +1882,7 @@ def importShapefile(self):
18781882
cId = cfg.ROIID
18791883
cInfo = f.attributes()[cInfoF]
18801884
i = cfg.utls.signatureID()
1881-
attributeList = [mcId, mcInfo, cId, cInfo, i]
1885+
attributeList = [mFid, mcId, mcInfo, cId, cInfo, i]
18821886
oF.setAttributes(attributeList)
18831887
cfg.shpLay.addFeature(oF)
18841888
cfg.shpLay.commitChanges()

0 commit comments

Comments
 (0)