Fixed problem with loading images in Composer

git-svn-id: svn://10.0.0.236/trunk@6046 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com
1998-07-21 02:38:18 +00:00
parent 567b3713fa
commit bfa2b247ce

View File

@@ -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