Bug 365742, crash with drawing empty images in trees, r+sr=neil

git-svn-id: svn://10.0.0.236/trunk@217992 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
enndeakin%sympatico.ca
2007-01-08 16:31:21 +00:00
parent b8e8e2fcfb
commit 057a845ec2

View File

@@ -3156,6 +3156,8 @@ nsTreeBodyFrame::PaintImage(PRInt32 aRowIndex,
// Get the image destination size.
nsSize imageDestSize = GetImageDestSize(imageContext, useImageRegion, image);
if (!imageDestSize.width || !imageDestSize.height)
return;
// Get the borders and padding.
nsMargin bp(0,0,0,0);