summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-04-26 17:57:55 +0530
committerJan Holesovsky <kendy@collabora.com>2017-04-26 18:08:27 +0200
commite95c84b9381ecd6836d94903aeed8769eda63033 (patch)
treec6ccc2373ff2eeeee5bbddf282da04c46aacfad5 /sc
parentd4db3c4658925076301f2e9edce40051be67d882 (diff)
sc lok: Do not change comment indicator setting
This setting is saved to doc model when document is saved eventually. We should respect the user settings, and not play with it like this - changing this setting to false unconditionally. Originally, setting SetNotesMode to false was meant to prevent any kind of in-tile note rendering in case of LOK when it is turned off. But turns out this option is only for note indicator i.e the red button. We already have a LOK in-tile rendering guard in ScDocFunc::ShowNote that prevents popping drawinglayer note even if corresponding UNO command is sent by the LOK client. Change-Id: Id6c7b2cd30cdbefe7dacc2a701638b2488ab245d Reviewed-on: https://gerrit.libreoffice.org/36993 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 35fa76e8e669..da430dc4fc2f 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1064,10 +1064,6 @@ void ScModelObj::initializeForTiledRendering(const css::uno::Sequence<css::beans
// format
SvtSaveOptions().SetWarnAlienFormat(false);
- // If annotations are turned off in tiled rendering case
- if (comphelper::LibreOfficeKit::isActive() && !comphelper::LibreOfficeKit::isTiledAnnotations())
- ScDocShell::GetViewData()->SetNotesMode(false);
-
// default tile size in pixels
mnTilePixelWidth = 256;
mnTilePixelHeight = 256;