From 812cd0c216b3d5af040edbd09504b08f81f116f1 Mon Sep 17 00:00:00 2001 From: Tomohiro Fukuhara Date: Wed, 17 Jul 2024 17:11:41 +0900 Subject: [PATCH] Changed an attribute type from float to int: Source: https://gis.stackexchange.com/questions/456158/numerical-digitize-give-a-stack-trace-error-on-all-releases-after-3-18 --- addFeatureGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addFeatureGUI.py b/addFeatureGUI.py index 5692043..87b0097 100644 --- a/addFeatureGUI.py +++ b/addFeatureGUI.py @@ -207,7 +207,7 @@ def configureDialog(self, p_layertype, p_wkbtype, p_Multitype=False, p_Z=False, # Resize grid. Set column's width equal. Resize the section to fill the available space. for i in range(self.twPoints.columnCount()): - self.twPoints.setColumnWidth(i, self.twPoints.width()/self.twPoints.columnCount()) + self.twPoints.setColumnWidth(i, int(self.twPoints.width()/self.twPoints.columnCount())) self.twPoints.horizontalHeader().setSectionResizeMode(i, QHeaderView.Stretch) # Disable OK button. Wait for entering valid coordinates