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
Родитель 5ca92aa7c5
Коммит 197e5a86da
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

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