2
0
Nicolas Cannasse 5 жил өмнө
parent
commit
fcb5b0a667

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

@@ -558,7 +558,7 @@ class Editor extends Component {
 			if (c == null)
 				return;
 			beginChanges();
-			var err = sheet.addColumn(c, index + 1);
+			var err = sheet.addColumn(c, index == null ? null : index + 1);
 			endChanges();
 			if (err != null) {
 				modal.error(err);