delGraph method

void delGraph()

Implementation

void delGraph(){
	_info[_curIndex]._expr1 = "";
	_info[_curIndex]._expr2 = "";

	// 計算結果保持バッファを解放
	_info[_curIndex]._ans = [];
	_info[_curIndex]._ansNum.set( 0 );

	// 後ろのグラフ情報を前に詰める
	for( int i = _curIndex + 1; i < _infoNum; i++ ){
		_info[i - 1] = _info[i];
	}

	_infoNum--;
	if( _curIndex == _infoNum ){
		selGraph( _infoNum - 1 );
	}
	if( _infoNum == 0 ){
		// グラフ情報1個は常に存在させる
		addGraph();
	}
}