src/java/isac/wsdialog/DialogGuide.java
changeset 1706 affa7349713c
parent 1703 6083f6c858b7
child 1732 dd82422b3481
     1.1 --- a/src/java/isac/wsdialog/DialogGuide.java	Wed Aug 18 17:35:11 2004 +0200
     1.2 +++ b/src/java/isac/wsdialog/DialogGuide.java	Wed Aug 18 17:40:16 2004 +0200
     1.3 @@ -109,15 +109,21 @@
     1.4        ((IToUser) datachange_listeners_.elementAt(i)).calcChanged(event);
     1.5      }
     1.6      ICalcIterator last_formula = event.getFirstChangedFormula();
     1.7 -    while (!last_formula.isLast()) last_formula.moveDown();
     1.8 +    // while searching for last formula, mark intermediate CalcHeads as not to be edited
     1.9 +    while (!last_formula.isLast()) {
    1.10 +			if (last_formula.getElement().getType() == ICalcElement.CALCEL_CALCHEAD) { 
    1.11 +				last_formula.getElement().setViewStyle(CalcHead.VIEWSTYLE_IN_CALC);
    1.12 +    }
    1.13 +    	last_formula.moveDown(); 
    1.14 +    } 
    1.15 +    // for now, do not specify the CalcHead, just display it.
    1.16      if (last_formula.getElement().getType() == ICalcElement.CALCEL_CALCHEAD) {
    1.17 -    	if (false) {
    1.18 -		phase_ = DIALOGPHASE_SPECIFY_SUBPROBLEM;
    1.19 -	} else {
    1.20 -    		last_formula.getElement().setViewStyle(CalcHead.VIEWSTYLE_IN_CALC);
    1.21 -	}
    1.22 +	    if (false) {
    1.23 +				phase_ = DIALOGPHASE_SPECIFY_SUBPROBLEM;
    1.24 +			} else {
    1.25 +	    	last_formula.getElement().setViewStyle(CalcHead.VIEWSTYLE_IN_CALC);
    1.26 +			}
    1.27      }
    1.28 -    
    1.29    }
    1.30  
    1.31    /**