From bfa2b247cec593f35505020808d359baac84cd19 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Tue, 21 Jul 1998 02:38:18 +0000 Subject: [PATCH] Fixed problem with loading images in Composer git-svn-id: svn://10.0.0.236/trunk@6046 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/lib/layout/editor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/lib/layout/editor.cpp b/mozilla/lib/layout/editor.cpp index c305f3c7ef9..d249efe8097 100644 --- a/mozilla/lib/layout/editor.cpp +++ b/mozilla/lib/layout/editor.cpp @@ -977,16 +977,21 @@ intn EDT_ProcessTag(void *data_object, PA_Tag *tag, intn status){ if( pDocData->edit_buffer == 0 ) { +#if 0 +// Don't do this - we end up here when using View | Reload +// TODO: NEED TO INVESTIGATE FURTHER - WE ARE CREATING A NEW DOC BEFORE +// DELETING THE OLD ONE when using reload. // We shouldn't have a buffer associated with a context and // not have one in pDocData as well... // (This is needed because we now end up here when inserting images!) if( pEditBuffer ) { // ...We should NEVER be in this situation - XP_ASSERT(FALSE); +// XP_ASSERT(FALSE); pDocData->edit_buffer = pEditBuffer; } else +#endif { // HACK ALERT // Libnet does not seem to be able to supply us with a reliable