Kaydet (Commit) 1e451bb6 authored tarafından Pranav Kant's avatar Pranav Kant

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
üst d6fd4252
...@@ -1050,10 +1050,6 @@ void ScModelObj::initializeForTiledRendering(const css::uno::Sequence<css::beans ...@@ -1050,10 +1050,6 @@ void ScModelObj::initializeForTiledRendering(const css::uno::Sequence<css::beans
// format // format
SvtSaveOptions().SetWarnAlienFormat(false); 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 // default tile size in pixels
mnTilePixelWidth = 256; mnTilePixelWidth = 256;
mnTilePixelHeight = 256; mnTilePixelHeight = 256;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment