Geometry: Fix point paste command.

setup.py
Pierre-Antoine Rouby 2024-01-15 13:56:58 +01:00
parent 7fd570c5a7
commit 2c8c2699ef
2 changed files with 8 additions and 3 deletions

View File

@ -215,8 +215,13 @@ class ProfileXYZ(Profile, SQLSubModel):
point = None
try:
if len(header) == 0:
x = float(data[0])
y = float(data[1])
z = float(data[2])
name = data[3] if len(data) == 4 else ""
point = PointXYZ(
*data, profile=self, status=self._status
x, y, z, name, profile=self, status=self._status
)
else:
valid_header = {'name', 'x', 'y', 'z'}

View File

@ -235,8 +235,8 @@ class ProfileWindow(PamhyrWindow):
if len(header) != 0:
header.append("profile")
for row in data:
row.append(self._profile)
# for row in data:
# row.append(self._profile)
row = self.index_selected_row()
self._tablemodel.paste(row, header, data)