Skip to content

Commit

Permalink
Merge pull request #43 from jacksonja/master
Browse files Browse the repository at this point in the history
Order of parameters to ExcelSheet::setNamedRange method was incorrect.
  • Loading branch information
iliaal committed Nov 18, 2013
2 parents f99bf56 + 942e551 commit 5732b29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions excel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3372,11 +3372,11 @@ EXCEL_METHOD(Sheet, setNamedRange)
{
SheetHandle sheet;
zval *object = getThis();
long row, col, to_row, to_col;
long row, to_row, col, to_col;
char *name;
int name_len;

if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sllll", &name, &name_len, &row, &col, &to_row, &to_col) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sllll", &name, &name_len, &row, &to_row, &col, &to_col) == FAILURE) {
RETURN_FALSE;
}

Expand All @@ -3394,7 +3394,7 @@ EXCEL_METHOD(Sheet, setNamedRange)

SHEET_FROM_OBJECT(sheet, object);

RETURN_BOOL(xlSheetSetNamedRange(sheet, name, row, col, to_row, to_col));
RETURN_BOOL(xlSheetSetNamedRange(sheet, name, row, to_row, col, to_col));
}
/* }}} */

Expand Down

0 comments on commit 5732b29

Please sign in to comment.