slideshow/source/engine/pointersymbol.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 54681a12b38db29b4d65e3c4f4c52a12436965d0
Author:     Daniel Lohmann <libreofficecontribut...@dldld.de>
AuthorDate: Sun Nov 27 11:52:56 2022 +0100
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Mon Nov 28 08:47:47 2022 +0100

    Presenter screen wrong position of pointer
    
    The pointer is drawn on the presenting screen and the presenter
    console. In the presenter console the position of the pointer
    is not matching the position on the slide or position in the impress
    remote app. This fixed by this commit.
    
    Change-Id: I5650f62304934d2acb558e32a8e9de78a9f0a12a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143341
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/slideshow/source/engine/pointersymbol.cxx 
b/slideshow/source/engine/pointersymbol.cxx
index 50f4421add5c..00832a4edf26 100644
--- a/slideshow/source/engine/pointersymbol.cxx
+++ b/slideshow/source/engine/pointersymbol.cxx
@@ -96,8 +96,8 @@ basegfx::B2DPoint 
PointerSymbol::calcSpritePos(UnoViewSharedPtr const & rView) c
     const geometry::IntegerSize2D realTranslationOffset ( 
rView->getTranslationOffset() );
 
     return basegfx::B2DPoint(
-        realTranslationOffset.Width + ((aViewArea.Width - aViewArea.X) - 2 * 
realTranslationOffset.Width) * maPos.X,
-        realTranslationOffset.Height + ((aViewArea.Height - aViewArea.Y) - 2 * 
realTranslationOffset.Height) * maPos.Y);
+        realTranslationOffset.Width + (aViewArea.Width * maPos.X),
+        realTranslationOffset.Height + (aViewArea.Height * maPos.Y));
 }
 
 void PointerSymbol::viewAdded( const UnoViewSharedPtr& rView )

Reply via email to