[Libreoffice-commits] core.git: editeng/source

Stephan Bergmann sbergman at redhat.com
Tue May 5 08:48:51 PDT 2015


 editeng/source/editeng/impedit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 25487875563c5aa05253e3f3199b082ded16184c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue May 5 17:47:26 2015 +0200

    vcl::Window::Scroll takes a sal_uInt16 nFlags, not a sal_Bool
    
    This passing of sal_True instead of some SCROLL_* flags has been there ever
    since fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import," and the
    signature of vcl::Window::Scroll has been like that at least since
    f59676fe09175725ee0a75a1678dd1581decc20b "INTEGRATION: CWS
    hedaburemove01: #72503# get rid of hedabu procedure: Moving headers to
    vcl/inc/vcl and correspondent necessary changes," so lets arbitrarily assume
    that this wants to pass SCROLL_CLIP (which has the same numeric value as
    
    Change-Id: I8da6536404aa220611a7df96605c7a4a9efc7f7c

diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 2061716..3d126ba 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1057,7 +1057,7 @@ Pair ImpEditView::Scroll( long ndX, long ndY, sal_uInt8 nRangeCheck )
         aVisDocStartPos = pOutWin->LogicToPixel( aVisDocStartPos );
         aVisDocStartPos = pOutWin->PixelToLogic( aVisDocStartPos );
         Rectangle aRect( aOutArea );
-        pOutWin->Scroll( nRealDiffX, nRealDiffY, aRect, sal_True );
+        pOutWin->Scroll( nRealDiffX, nRealDiffY, aRect, SCROLL_CLIP );
         pOutWin->Update();
         pCrsr->SetPos( pCrsr->GetPos() + Point( nRealDiffX, nRealDiffY ) );
         if ( bVisCursor )


More information about the Libreoffice-commits mailing list