Kaydet (Commit) e47db97d authored tarafından Miklos Vajna's avatar Miklos Vajna

SwLayAction::FormatLayout: avoid direct DrawRect()

Regression from commit 1d9e8376 (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
üst 519b3430
...@@ -1335,9 +1335,6 @@ bool SwLayAction::FormatLayout( OutputDevice *pRenderContext, SwLayoutFrm *pLay, ...@@ -1335,9 +1335,6 @@ bool SwLayAction::FormatLayout( OutputDevice *pRenderContext, SwLayoutFrm *pLay,
if(aSpaceToPrevPage.Height() > 0 && aSpaceToPrevPage.Width() > 0) if(aSpaceToPrevPage.Height() > 0 && aSpaceToPrevPage.Width() > 0)
pImp->GetShell()->AddPaintRect( aSpaceToPrevPage ); pImp->GetShell()->AddPaintRect( aSpaceToPrevPage );
if (pSh)
pRenderContext->DrawRect( aSpaceToPrevPage.SVRect() );
// left // left
aSpaceToPrevPage = aPageRect; aSpaceToPrevPage = aPageRect;
aSpaceToPrevPage.Left( aSpaceToPrevPage.Left() - nHalfDocBorder ); aSpaceToPrevPage.Left( aSpaceToPrevPage.Left() - nHalfDocBorder );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment