From 5a4204b18ab8014f6bce1f09537f2fb7ec268c13 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 8 Aug 2017 13:28:13 +0300 Subject: [PATCH] [PE] Fix Bug 35540. --- apps/presentationeditor/main/app/controller/Toolbar.js | 2 +- apps/presentationeditor/main/app/view/Toolbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 07eaa035f..150bb7d96 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -1562,7 +1562,7 @@ define([ this.api.asc_SetViewRulers(!checked); } - Common.localStorage.setItem('pe-hidden-rulers', checked ? 1 : 0); + Common.localStorage.setBool('pe-hidden-rulers', checked); Common.NotificationCenter.trigger('layout:changed', 'rulers'); Common.NotificationCenter.trigger('edit:complete', this.toolbar); diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 4b0ba1f1d..18bee6fdd 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -1391,7 +1391,7 @@ define([ }); this.mnuitemHideStatusBar.setChecked(Common.localStorage.getBool('pe-hidden-status'), true); - this.mnuitemHideRulers.setChecked(Common.localStorage.getItem("pe-hidden-rulers"), true); + this.mnuitemHideRulers.setChecked(Common.localStorage.getBool("pe-hidden-rulers"), true); // // Enable none paragraph components this.lockToolbar(PE.enumLock.disableOnStart, false, {array: this.slideOnlyControls.concat(this.shapeControls)});