mirror of https://gitlab.com/pamhyr/pamhyr2
Geometry: Fix point paste command.
parent
7fd570c5a7
commit
2c8c2699ef
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue