Skip to content

Commit

Permalink
TEIIDDES-1037 sync'd profile selection to properly get useTypeLine value
Browse files Browse the repository at this point in the history
to set includeSkip value and set default first data line.
  • Loading branch information
blafond committed Dec 1, 2014
1 parent 4c58a61 commit 4577a8e
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,15 @@ public void setFirstDataRow(int firstDataRow) {
CoreArgCheck.isPositive(firstDataRow, "firstDataRow is not greater than zero"); //$NON-NLS-1$

this.firstDataRow = firstDataRow;
if( !this.includeSkip &&
this.firstDataRow > 0 && this.headerLineNumber > 0 &&
(this.firstDataRow - this.headerLineNumber > 1) ) {
setIncludeSkip(true);
} else if( this.firstDataRow > 0 && this.headerLineNumber > 0 &&
(this.firstDataRow - this.headerLineNumber <= 1) ) {
setIncludeSkip(false);
}

}

/**
Expand Down Expand Up @@ -1030,6 +1039,9 @@ public boolean getIncludeTypeLine() {

public void setIncludeTypeLine(boolean value) {
this.includeTypeLine = value;
if( value ) {
firstDataRow = 3;
}
}

}

0 comments on commit 4577a8e

Please sign in to comment.