浏览代码

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

Marek Lewandowski 5 年之前
父节点
当前提交
0bc8a8abdf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 );
 		}