Fixed SetThumbSize to not crash when mContext == NULL.

This commit is contained in:
beard%netscape.com 1998-11-15 21:58:09 +00:00
parent b78b9df184
commit 2395b90562

View File

@ -302,9 +302,11 @@ NS_METHOD nsScrollbar::SetThumbSize(PRUint32 aSize)
aSize = 1;
mThumbSize = aSize;
if (mContext != NULL) { // beard - can't draw w/o a context.
StartDraw();
DrawWidget(); // ??? is this necessary - DWC
EndDraw();
}
return(NS_OK);
}