Added check for index on merge_above to resolve #330

This commit is contained in:
Safia Abdalla 2015-08-25 22:36:05 -07:00
parent 45b9caf82b
commit 7999edb5b8

View File

@ -1496,7 +1496,9 @@ define(function (require) {
*/
Notebook.prototype.merge_cell_above = function () {
var index = this.get_selected_index();
this.merge_cells([index-1, index], true)
if (index != 0) {
this.merge_cells([index-1, index], true)
}
};
/**