summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-10-17 19:01:44 +0300
committerTor Lillqvist <tml@collabora.com>2019-10-17 19:06:47 +0200
commitc261b3aae843e10ed169b6f08356386688d521d2 (patch)
treee6f70db6c05c96a26e368472203ce723f1ed1917
parente2824abd73d97b3f043ef84f06244740762da753 (diff)
tdf#128021 Make "Anchor to character" the default for inserted images on iOS
Apparently this matches Word on iOS, even if Word on Windows has it the other way? Change-Id: I9949585e1d4e70627d47056dd92abffea24f0b28 Reviewed-on: https://gerrit.libreoffice.org/80986 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--sw/source/uibase/frmdlg/frmmgr.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/frmdlg/frmmgr.cxx b/sw/source/uibase/frmdlg/frmmgr.cxx
index 184b4177fbb3..792bfa509522 100644
--- a/sw/source/uibase/frmdlg/frmmgr.cxx
+++ b/sw/source/uibase/frmdlg/frmmgr.cxx
@@ -87,7 +87,11 @@ SwFlyFrameAttrMgr::SwFlyFrameAttrMgr( bool bNew, SwWrtShell* pSh, Frmmgr_Type nT
if (nType == Frmmgr_Type::GRF || nType == Frmmgr_Type::OLE)
{
+#ifndef IOS // tdf#128021
m_aSet.Put(SwFormatAnchor(RndStdIds::FLY_AS_CHAR));
+#else
+ m_aSet.Put(SwFormatAnchor(RndStdIds::FLY_AT_CHAR));
+#endif
}
}
else if ( nType == Frmmgr_Type::NONE )