ソースを参照

fixed copy/paste bug

Nicolas Cannasse 5 年 前
コミット
9940faf175
1 ファイル変更3 行追加2 行削除
  1. 3 2
      hide/comp/cdb/Editor.hx

+ 3 - 2
hide/comp/cdb/Editor.hx

@@ -191,6 +191,7 @@ class Editor extends Component {
 		var text = ide.getClipboard();
 		var text = ide.getClipboard();
 		var columns = cursor.table.columns;
 		var columns = cursor.table.columns;
 		var sheet = cursor.table.sheet;
 		var sheet = cursor.table.sheet;
+		var realSheet = cursor.table.getRealSheet();
 		if( clipboard == null || text != clipboard.text ) {
 		if( clipboard == null || text != clipboard.text ) {
 			if( cursor.x < 0 || cursor.y < 0 ) return;
 			if( cursor.x < 0 || cursor.y < 0 ) return;
 			var x1 = cursor.x;
 			var x1 = cursor.x;
@@ -232,7 +233,7 @@ class Editor extends Component {
 				}
 				}
 			}
 			}
 			endChanges();
 			endChanges();
-			sheet.sync();
+			realSheet.sync();
 			refreshAll();
 			refreshAll();
 			return;
 			return;
 		}
 		}
@@ -273,7 +274,7 @@ class Editor extends Component {
 			posY++;
 			posY++;
 		}
 		}
 		endChanges();
 		endChanges();
-		sheet.sync();
+		realSheet.sync();
 		refreshAll();
 		refreshAll();
 	}
 	}