diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-21 15:20:45 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-21 15:38:43 +0100 |
commit | e7eca35148204d094dcdb7d8b3e4ec6c9d454159 (patch) | |
tree | 8392796063dd8c498380b7d70ba1e14e44e02426 /sw | |
parent | ccb3d6e7ea5fc01ed5233b20ef950aa00e65e80a (diff) |
sw tiled editing: default to anchoring new images as-char
Change-Id: I6aeb06fe1697b7a30e83a3b1b364f44e5822fe95
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh1.cxx | 5 |
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 { |