瀏覽代碼

Fix copy/paste from line to another of different kind

lviguier 1 年之前
父節點
當前提交
edba695b76
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hide/comp/cdb/Editor.hx

+ 1 - 1
hide/comp/cdb/Editor.hx

@@ -682,8 +682,8 @@ class Editor extends Component {
 				for( cid in 0...clipboard.schema.length ) {
 					var c1 = clipboard.schema[cid];
 					var c2 = columns[cid + posX];
-					var p = Editor.getColumnProps(c2);
 					if( c2 == null ) continue;
+					var p = Editor.getColumnProps(c2);
 
 					if( !cursor.table.canEditColumn(c2.name) || p.copyPasteImmutable)
 						continue;