Skip to content

Commit

Permalink
Update comment about undo bug which is now resolved.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peeters committed Oct 19, 2024
1 parent 0ac02c9 commit b6ef41e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions client_server/Actions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,8 @@ void ActionPositionCursor::execute(DocumentThread& cl, GUIBase& gb)
newref=ref;
}
else {
// FIXME: adding a new cell should be part of the
// undo stack and going through ActionAddCell, otherwise
// undo/redo will generate it with a different cell id.
// Alternatively, make sure that we store the generated cell id
// so we can re-use it if we execute this in redo.
// Make sure that we store the generated cell id so we
// can re-use it if we execute this in redo.
if(needed_new_cell_with_id > 0) {
DataCell::id_t id;
id.id = needed_new_cell_with_id;
Expand Down

0 comments on commit b6ef41e

Please sign in to comment.