Skip to content

Commit 5732b29

Browse files
committed
Merge pull request #43 from jacksonja/master
Order of parameters to ExcelSheet::setNamedRange method was incorrect.
2 parents f99bf56 + 942e551 commit 5732b29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

excel.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3372,11 +3372,11 @@ EXCEL_METHOD(Sheet, setNamedRange)
33723372
{
33733373
SheetHandle sheet;
33743374
zval *object = getThis();
3375-
long row, col, to_row, to_col;
3375+
long row, to_row, col, to_col;
33763376
char *name;
33773377
int name_len;
33783378

3379-
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sllll", &name, &name_len, &row, &col, &to_row, &to_col) == FAILURE) {
3379+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sllll", &name, &name_len, &row, &to_row, &col, &to_col) == FAILURE) {
33803380
RETURN_FALSE;
33813381
}
33823382

@@ -3394,7 +3394,7 @@ EXCEL_METHOD(Sheet, setNamedRange)
33943394

33953395
SHEET_FROM_OBJECT(sheet, object);
33963396

3397-
RETURN_BOOL(xlSheetSetNamedRange(sheet, name, row, col, to_row, to_col));
3397+
RETURN_BOOL(xlSheetSetNamedRange(sheet, name, row, to_row, col, to_col));
33983398
}
33993399
/* }}} */
34003400

0 commit comments

Comments
 (0)