Revert "rendercontext: Fix borderwindow rendering when called from class Edit."

This is not necessary for double-buffering anyway (since
891304bb0a), and breaks the non-double-buffered
case.

This reverts commit 1926cfb938.
This commit is contained in:
Jan Holesovsky
2015-05-26 11:20:43 +02:00
parent a30886283f
commit 0394b69cf0

View File

@@ -1078,16 +1078,16 @@ void Edit::ImplPaintBorder(vcl::RenderContext& rRenderContext, long nXStart, lon
aClipRgn.Move(aBorderOffs.X(), aBorderOffs.Y());
}
vcl::Region oldRgn(rRenderContext.GetClipRegion());
rRenderContext.SetClipRegion(aClipRgn);
vcl::Region oldRgn(pBorder->GetClipRegion());
pBorder->SetClipRegion(aClipRgn);
pBorder->Paint(rRenderContext, Rectangle());
pBorder->Paint(*pBorder, Rectangle()); // FIXME
rRenderContext.SetClipRegion(oldRgn);
pBorder->SetClipRegion(oldRgn);
}
else
{
pBorder->Paint(rRenderContext, Rectangle());
pBorder->Paint(*pBorder, Rectangle()); // FIXME
}
}
}