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

Miklos Vajna vmiklos at collabora.co.uk
Mon Jul 6 03:40:14 PDT 2015


 sw/source/core/layout/layact.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit e47db97d2ced9178456eebaece11118158dce406
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Jul 6 12:01:02 2015 +0200

    SwLayAction::FormatLayout: avoid direct DrawRect()
    
    Regression from commit 1d9e837698baab795efee6cc8b0e289528d5cac6 (Use
    GetBoundRect() instead of Frm() in layout., 2011-04-29), this causes
    problems for double-buffered rendering and also seems to be pointless,
    as just above we already added the rectangle to the repaint area.
    
    Change-Id: I3dc67143e8332ab941a683414ee318dbef13de88

diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index c87def2..a0c057b 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -1335,9 +1335,6 @@ bool SwLayAction::FormatLayout( OutputDevice *pRenderContext, SwLayoutFrm *pLay,
                     if(aSpaceToPrevPage.Height() > 0 && aSpaceToPrevPage.Width() > 0)
                         pImp->GetShell()->AddPaintRect( aSpaceToPrevPage );
 
-                    if (pSh)
-                        pRenderContext->DrawRect( aSpaceToPrevPage.SVRect() );
-
                     // left
                     aSpaceToPrevPage = aPageRect;
                     aSpaceToPrevPage.Left( aSpaceToPrevPage.Left() - nHalfDocBorder );


More information about the Libreoffice-commits mailing list