Bug 153834: crash when changing Window's windows colors (e.g. Win XP theme change); Patch by Adam Lock <adamlock@netscape.com>, r=saari, sr=jag

This commit is contained in:
jaggernaut%netscape.com 2002-07-03 04:03:20 +00:00
Родитель 071ab082b4
Коммит 6506f1c138
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -4082,7 +4082,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
because in testing it seems an accurate harbinger of
an impending min/max/restore change (WM_NCCALCSIZE would
also work, but it's also sent when merely resizing.)) */
if (wp->flags & SWP_FRAMECHANGED) {
if (wp->flags & SWP_FRAMECHANGED && ::IsWindowVisible(mWnd)) {
WINDOWPLACEMENT pl;
pl.length = sizeof(pl);
::GetWindowPlacement(mWnd, &pl);