mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
geometry: Fix add new row.
This commit is contained in:
1 parent
ea483e4d1e
commit
b93b6fe62d
3 files changed
+9
-25
No files matched your search
@@ -63,19 +63,6 @@ class Reach:
|
||||
"""
|
||||
return self._profiles
|
||||
|
||||
def add_profile(self, index):
|
||||
"""Add a new profile at the end of profiles list
|
||||
|
||||
Returns:
|
||||
Nothing.
|
||||
"""
|
||||
nb_profile = self.number_profiles
|
||||
profile = ProfileXYZ()
|
||||
profile.num = nb_profile + 1
|
||||
|
||||
self._profiles.insert(profile, index + 1)
|
||||
self._update_profile_numbers()
|
||||
|
||||
def _update_profile_numbers(self):
|
||||
"""Update profiles index
|
||||
|
||||
@@ -284,7 +271,6 @@ class Reach:
|
||||
reverse=is_reversed
|
||||
)
|
||||
|
||||
@trace
|
||||
@timer
|
||||
def sort_with_indexes(self, indexes: list):
|
||||
if len(self._profiles) != len(indexes):
|
||||
|
||||
Reference in new issue
Block a user