fixed bug i just introduced (by removing code i just added)!

This commit is contained in:
michaelp 1998-04-28 01:00:00 +00:00
parent 7721fe5215
commit d762a26035

View File

@ -324,11 +324,13 @@ void nsView :: Paint(nsIRenderingContext& rc, const nsRect& rect)
{
rc.PushState();
rc.Translate(mBounds.x, mBounds.y);
if (mClipRect.IsEmpty() == PR_FALSE)
{
nsRect trect;
rc.Translate(mBounds.x, mBounds.y);
// rc.Translate(mBounds.x, mBounds.y);
trect.x = mClipRect.x;
trect.y = mClipRect.y;
@ -339,8 +341,8 @@ void nsView :: Paint(nsIRenderingContext& rc, const nsRect& rect)
}
else
{
rc.SetClipRect(mBounds, PR_TRUE);
rc.Translate(mBounds.x, mBounds.y);
// rc.SetClipRect(mBounds, PR_TRUE);
// rc.Translate(mBounds.x, mBounds.y);
}
if (nsnull != mFrame)