diff --git a/wp-admin/js/image-edit.js b/wp-admin/js/image-edit.js index f0aed6c8c3..bc5a49c059 100644 --- a/wp-admin/js/image-edit.js +++ b/wp-admin/js/image-edit.js @@ -72,10 +72,10 @@ imageEdit = { warn = $('#imgedit-scale-warn-' + postid), w1 = '', h1 = ''; if ( x ) { - h1 = (w.val() != '') ? this.intval( w.val() / this.hold['xy_ratio'] ) : ''; + h1 = (w.val() != '') ? Math.round( w.val() / this.hold['xy_ratio'] ) : ''; h.val( h1 ); } else { - w1 = (h.val() != '') ? this.intval( h.val() * this.hold['xy_ratio'] ) : ''; + w1 = (h.val() != '') ? Math.round( h.val() * this.hold['xy_ratio'] ) : ''; w.val( w1 ); }