diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-08-06 18:42:46 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-09 11:28:11 +0200 |
commit | a28ff6a920492b64095b30cf7800b0678ea84c60 (patch) | |
tree | 29e69cb01330531064e9dde15da04340419b5534 /svx | |
parent | be11a3573a21e83dfb6a473d98bc8ba9bf57057c (diff) |
tdf#124076: fix preview for horizontal alignment of object in frame border
...has left and right image exchanged
Change-Id: Idea8fc05ab70133e6c0576a6def0610e94d1580e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137903
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/swframeexample.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/swframeexample.cxx b/svx/source/dialog/swframeexample.cxx index aa82ccecaf7b..a90780a5bf15 100644 --- a/svx/source/dialog/swframeexample.cxx +++ b/svx/source/dialog/swframeexample.cxx @@ -289,12 +289,12 @@ void SwFrameExample::CalcBoundRect_Impl(const vcl::RenderContext& rRenderContext rRect.SetRight( aFrameAtFrame.Right() - FLYINFLY_BORDER ); break; - case RelOrientation::PAGE_RIGHT: + case RelOrientation::PAGE_LEFT: rRect.SetLeft( aFrameAtFrame.Left() ); rRect.SetRight( aFrameAtFrame.Left() + FLYINFLY_BORDER ); break; - case RelOrientation::PAGE_LEFT: + case RelOrientation::PAGE_RIGHT: rRect.SetLeft( aFrameAtFrame.Right() ); rRect.SetRight( aFrameAtFrame.Right() - FLYINFLY_BORDER ); break; |