Commit 2c8c2699 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Geometry: Fix point paste command.

Showing with 8 additions and 3 deletions
+8 -3
......@@ -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'}
......
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment