Révision 2128

tmp/org.txm.analec.rcp/src/visuAnalec/donnees/Corpus.java (revision 2128)
202 202
	}
203 203

  
204 204
	public void modifBornesUnite(Unite unite, int deb, int fin) {
205
		
206
		// fixing new bornes if necessary
207
		if (deb == unite.getDeb()) { // the start did not change so try fixing the end
208
			if (fin < deb) fin = deb;
209
		} else if (fin == unite.getFin()) { // the end did not change so try fixing the start
210
			if (deb > fin) deb = fin;
211
		} else if (fin < deb) { // try fixing the end
212
			fin = deb;
213
		}
214
		
205 215
		unite.setDeb(deb);
206 216
		unite.setFin(fin);
207 217
		fireMessage(new ElementEvent(this, TypeModifElement.BORNES_UNITE, unite));

Formats disponibles : Unified diff