Initialize the 2 new fields of the nsSizeEvent (mWinWidth + mWinHeight) before dispatching the event. Fix a crash due to recursive calls in the sample viewer app.

This commit is contained in:
pierre%netscape.com 1998-11-11 02:49:14 +00:00
parent e28082da09
commit f6071c18d3

View File

@ -816,6 +816,8 @@ PRBool nsWindow::ReportSizeEvent()
// nsSizeEvent
sizeEvent.windowSize = &mBounds;
sizeEvent.mWinWidth = mBounds.width;
sizeEvent.mWinHeight = mBounds.height;
// dispatch event
return(DispatchWindowEvent(sizeEvent));