[comp.windows.interviews] ibuild patch

vlis@lurch.stanford.edu (John Vlissides) (05/15/91)

3.0b ibuild's Relate tool has a bug that can trash the pop-up menu and
ultimately cause a core dump. The patch below is archived as fix7 in the
3.0-fixes directory on interviews.stanford.edu.

Apply with "patch -p -N < fix7" at the top of the source tree

*** iv/src/bin/ibuild/ibmanips.c.orig	Fri May 10 12:36:12 1991
--- iv/src/bin/ibuild/ibmanips.c	Fri May 10 12:35:39 1991
***************
*** 226,232 ****
  	do {
  	    _viewer->Read(e);
  	} while (popup->Manipulating(e));
! 
  	_src = _src_relatemenu->GetInteractorComp();
  	delete popup;
  	if (_src != nil) {
--- 226,232 ----
  	do {
  	    _viewer->Read(e);
  	} while (popup->Manipulating(e));
!         popup->Effect(e);
  	_src = _src_relatemenu->GetInteractorComp();
  	delete popup;
  	if (_src != nil) {
***************
*** 266,271 ****
--- 266,272 ----
  	        _viewer->Read(e);
  	    } while (popup->Manipulating(e));
  
+             popup->Effect(e);
  	    _dest = _dest_relatemenu->GetInteractorComp();
  	    delete popup;
  	    _dest_relatemenu = nil;
--
John Vlissides
Computer Systems Lab
Stanford University
vlis@interviews.stanford.edu