nens / threedi-schematisation-editor

QGIS tool for editing schematisations
0 stars 0 forks source link

Linear obstacle layer - fields are wrong when there are no features #163

Open leendertvanwolfswinkel opened 1 year ago

leendertvanwolfswinkel commented 1 year ago

image.png

When the table is empty, it shows FID and not Crest Level. When it contains >0 features, it works correctly again

ldebek commented 1 year ago

@leendertvanwolfswinkel It seems like a QGIS bug realated with hiding columns of an empty attribute table. I did few more internal checks and it looks like if the table have no features, then index of the hidden columns is broken which results hidding fields always counting from the end. I think it's the same QT bug reported here: https://github.com/qgis/QGIS/issues/38653