diff options
author | Bakos Attila <bakos.attilakaroly@nisz.hu> | 2020-07-20 14:30:39 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-07-27 11:56:23 +0200 |
commit | 06fd06597796d9e92117602245f3968c93707708 (patch) | |
tree | 0ecfc3f06b6714bfa05154f8e98988d2a7457def | |
parent | 14e87a4b15d31a34e6053f6194688f3aa23af991 (diff) |
tdf#124430 Writer Editing: Fix textbox aligning
Before, when align function was used the textboxes
(shape+frame) went apart, now the textframe follows
the shape.
Co-dev: Attila Bánhegyi (NISZ)
Change-Id: I4d69a2f7f4e5ef50d17bb0871c501d6e0026d0e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99048
Reviewed-by: Attila Bakos <bakos.attilakaroly@nisz.hu>
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
-rw-r--r-- | sw/source/uibase/shells/drwbassh.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx index bccbe313bdf9..c707b803736b 100644 --- a/sw/source/uibase/shells/drwbassh.cxx +++ b/sw/source/uibase/shells/drwbassh.cxx @@ -53,6 +53,7 @@ #include <com/sun/star/text/RelOrientation.hpp> #include <IDocumentDrawModelAccess.hxx> #include <fmtfollowtextflow.hxx> +#include <textboxhelper.hxx> using namespace ::com::sun::star; @@ -478,6 +479,8 @@ void SwDrawBaseShell::Execute(SfxRequest const &rReq) SwFormatHoriOrient aHOrient(pFrameFormat->GetFormatAttr(RES_HORI_ORIENT)); aHOrient.SetHoriOrient( nHorizOrient ); pFrameFormat->SetFormatAttr(aHOrient); + if (auto pTxFrm = SwTextBoxHelper::getOtherTextBoxFormat(pFrameFormat, RES_DRAWFRMFMT)) + pTxFrm->SetFormatAttr(aHOrient); pSh->EndAction(); } @@ -489,6 +492,8 @@ void SwDrawBaseShell::Execute(SfxRequest const &rReq) SwFormatVertOrient aVOrient(pFrameFormat->GetFormatAttr(RES_VERT_ORIENT)); aVOrient.SetVertOrient( nVertOrient ); pFrameFormat->SetFormatAttr(aVOrient); + if (auto pTxFrm = SwTextBoxHelper::getOtherTextBoxFormat(pFrameFormat, RES_DRAWFRMFMT)) + pTxFrm->SetFormatAttr(aVOrient); pSh->EndAction(); } |