diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-06 12:01:02 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-06 12:39:17 +0200 |
commit | e47db97d2ced9178456eebaece11118158dce406 (patch) | |
tree | 7c3e8077af6f3b1a4f2ca7928b01631331cfda57 | |
parent | 519b34300f73b1e08f6194d6ba49d4fc010cf186 (diff) |
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
-rw-r--r-- | sw/source/core/layout/layact.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx index c87def2fae8d..a0c057bec894 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 ); |