Explorar o código

bugfix

redo with larger than actual id is now possible
Daniel %!s(int64=10) %!d(string=hai) anos
pai
achega
cb71189cb7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/js/History.js

+ 1 - 1
editor/js/History.js

@@ -259,7 +259,7 @@ History.prototype = {
 		if ( cmd === undefined || id > cmd.id ) {
 
 			cmd = this.redo();
-			while ( id > cmd.id ) {
+			while ( cmd !== undefined && id > cmd.id ) {
 
 				cmd = this.redo();