Explorar el Código

Internal: Fixed off by one error when removing row headers.

Marek Lewandowski hace 5 años
padre
commit
0bc8a8abdf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ckeditor5-table/src/commands/removerowcommand.js

+ 1 - 1
packages/ckeditor5-table/src/commands/removerowcommand.js

@@ -95,7 +95,7 @@ export default class RemoveRowCommand extends Command {
 		const tableRow = table.getChild( removedRowIndex );
 		const headingRows = table.getAttribute( 'headingRows' ) || 0;
 
-		if ( headingRows && removedRowIndex <= headingRows ) {
+		if ( headingRows && removedRowIndex < headingRows ) {
 			updateNumericAttribute( 'headingRows', headingRows - 1, table, writer, 0 );
 		}