svx/source/dialog/swframeexample.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a28ff6a920492b64095b30cf7800b0678ea84c60
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sat Aug 6 18:42:46 2022 +0200
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Aug 9 11:28:11 2022 +0200

    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 <caol...@redhat.com>

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;

Reply via email to