summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-07-06 12:01:02 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-07-07 10:14:14 +0200
commitfabf8a4dfebe19abcb5f995c20d8750f95d89a9a (patch)
tree1372c217eb0ebfe795cbb0fbbb40af92efb8c565 /sw
parentf3596e705d072f2d968cd4cc75f8aeecf4048552 (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 (cherry picked from commit e47db97d2ced9178456eebaece11118158dce406)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/layact.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index 307a038c4252..d1c5cd41a109 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 );