瀏覽代碼

Fix condition for updating heading columns in adjustHeadingColumns().

Maciej Gołaszewski 5 年之前
父節點
當前提交
4822543193
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-table/src/tableutils.js

+ 1 - 1
packages/ckeditor5-table/src/tableutils.js

@@ -780,7 +780,7 @@ function getNewHeadingRowsValue( first, last, headingRows ) {
 function adjustHeadingColumns( table, removedColumnIndexes, writer ) {
 	const headingColumns = table.getAttribute( 'headingColumns' ) || 0;
 
-	if ( headingColumns && removedColumnIndexes.first <= headingColumns ) {
+	if ( headingColumns && removedColumnIndexes.first < headingColumns ) {
 		const headingsRemoved = Math.min( headingColumns - 1 /* Other numbers are 0-based */, removedColumnIndexes.last ) -
 			removedColumnIndexes.first + 1;