diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index f366395d13..115d9c6e60 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1334,19 +1334,18 @@ define([ } else if (zf == -3) { if (lastZoom > 0) { this.api.zoom(lastZoom); + + if (Common.localStorage.getBool("de-zoom-multipage", false)) { + this.api.zoomCustomMode(); + this.api.SetMultipageViewMode(true); + } } else if (lastZoom == -1) { this.api.zoomFitToPage(); } else if (lastZoom == -2) { this.api.zoomFitToWidth(); } } else { - if (Common.localStorage.getBool("de-zoom-multipage", false)) { - this.api.zoomCustomMode(); - this.api.SetMultipageViewMode(true); - - if ( lastZoom > 0 ) this.api.zoom(lastZoom); - } else - this.api.zoom(zf > 0 ? zf : 100); + this.api.zoom(zf > 0 ? zf : 100); } value = Common.localStorage.getItem("de-show-hiddenchars");