mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 03:49:42 +00:00
Fixed SetThumbSize to not crash when mContext == NULL.
This commit is contained in:
parent
b78b9df184
commit
2395b90562
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user