Skip to content

Commit 2d5116a

Browse files
committed
Fix copy-paste functionality
1 parent f86e2ea commit 2d5116a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/napari_deeplabcut/_widgets.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _paste_data(self, store):
161161
totpoints = len(self.data)
162162

163163
if len(self._clipboard.keys()) > 0:
164-
not_disp = self._dims_not_displayed
164+
not_disp = self._slice_input.not_displayed
165165
data = deepcopy(self._clipboard['data'])
166166
offset = [
167167
self._slice_indices[i] - self._clipboard['indices'][i]
@@ -175,6 +175,9 @@ def _paste_data(self, store):
175175
self._size = np.append(
176176
self.size, deepcopy(self._clipboard['size']), axis=0
177177
)
178+
self._symbol = np.append(
179+
self.symbol, deepcopy(self._clipboard['symbol']), axis=0
180+
)
178181

179182
self._feature_table.append(self._clipboard['features'])
180183

0 commit comments

Comments
 (0)