summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-01-21 15:20:45 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-21 15:38:43 +0100
commite7eca35148204d094dcdb7d8b3e4ec6c9d454159 (patch)
tree8392796063dd8c498380b7d70ba1e14e44e02426 /sw/source/uibase/wrtsh
parentccb3d6e7ea5fc01ed5233b20ef950aa00e65e80a (diff)
sw tiled editing: default to anchoring new images as-char
Change-Id: I6aeb06fe1697b7a30e83a3b1b364f44e5822fe95
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index e82f8aa3f754..aa4324e2315b 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -105,6 +105,7 @@
#include "FrameControlsManager.hxx"
#include <sfx2/msgpool.hxx>
+#include <comphelper/lok.hxx>
#include <memory>
using namespace sw::mark;
@@ -275,6 +276,10 @@ void SwWrtShell::Insert( const OUString &rPath, const OUString &rFilter,
// because of the DEF-Framesize
// These must be removed explicitly for the optimal size.
pFrameMgr->DelAttr(RES_FRM_SIZE);
+
+ if (comphelper::LibreOfficeKit::isActive())
+ // LOK: anchor inserted images as-char by default.
+ pFrameMgr->SetAnchor(FLY_AS_CHAR);
}
else
{