mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Fix point paste command.
This commit is contained in:
1 parent
7fd570c5a7
commit
2c8c2699ef
2 files changed
+8
-3
No files matched your search
@@ -215,8 +215,13 @@ class ProfileXYZ(Profile, SQLSubModel):
|
|||||||
point = None
|
point = None
|
||||||
try:
|
try:
|
||||||
if len(header) == 0:
|
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(
|
point = PointXYZ(
|
||||||
*data, profile=self, status=self._status
|
x, y, z, name, profile=self, status=self._status
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
valid_header = {'name', 'x', 'y', 'z'}
|
valid_header = {'name', 'x', 'y', 'z'}
|
||||||
|
|||||||
@@ -235,8 +235,8 @@ class ProfileWindow(PamhyrWindow):
|
|||||||
|
|
||||||
if len(header) != 0:
|
if len(header) != 0:
|
||||||
header.append("profile")
|
header.append("profile")
|
||||||
for row in data:
|
# for row in data:
|
||||||
row.append(self._profile)
|
# row.append(self._profile)
|
||||||
|
|
||||||
row = self.index_selected_row()
|
row = self.index_selected_row()
|
||||||
self._tablemodel.paste(row, header, data)
|
self._tablemodel.paste(row, header, data)
|
||||||
|
|||||||
Reference in new issue
Block a user