From aa3283f7cad8bc1788cc3b64e41eb26dadfa693a Mon Sep 17 00:00:00 2001 From: hyatt Date: Sat, 2 May 1998 00:42:50 +0000 Subject: [PATCH] Fix for a crashing bug when the next layout element after a radio button or checkbox is not text. git-svn-id: svn://10.0.0.236/trunk@1053 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cmd/winfe/cxwin.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mozilla/cmd/winfe/cxwin.cpp b/mozilla/cmd/winfe/cxwin.cpp index 651279fe437..989c172713b 100644 --- a/mozilla/cmd/winfe/cxwin.cpp +++ b/mozilla/cmd/winfe/cxwin.cpp @@ -6750,8 +6750,11 @@ void CWinCX::invalidateElement( LO_Element *pElement ) pp = (LO_Any *)pElement->lo_any.next; } // for other Form element type( button, text input...), the widget handles the focus. - ResolveElement(Rect, pp->x, pp->y, pp->x_offset,pp->y_offset, pp->width, pp->height); - rectEmpty = FALSE; + if (pp) + { + ResolveElement(Rect, pp->x, pp->y, pp->x_offset,pp->y_offset, pp->width, pp->height); + rectEmpty = FALSE; + } break; case LO_TEXT : // for a text(link), the element itself has a dotted box as focus.