Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Remove temporary fixes for model-selection-range-intersects error fro…
Browse files Browse the repository at this point in the history
…m MergeCellsCommand.
  • Loading branch information
jodator committed Apr 14, 2020
1 parent 06b2333 commit 0901de5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/commands/mergecellscommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ export default class MergeCellsCommand extends Command {
// All cells will be merge into the first one.
const firstTableCell = selectedTableCells.shift();

// This prevents the "model-selection-range-intersects" error, caused by removing row selected cells.
writer.setSelection( firstTableCell, 'on' );

// Update target cell dimensions.
const { mergeWidth, mergeHeight } = getMergeDimensions( firstTableCell, selectedTableCells, tableUtils );
updateNumericAttribute( 'colspan', mergeWidth, firstTableCell, writer );
Expand Down

0 comments on commit 0901de5

Please sign in to comment.