Mercurial > forge
changeset 12421:ffccd912a417 octave-forge
Fix getFirstCellNum return value when checking rightmost cells
author | prnienhuis |
---|---|
date | Sun, 06 Apr 2014 20:47:38 +0000 |
parents | e0e1839e1dac |
children | fe88d580dd72 |
files | main/io/inst/private/__POI_getusedrange__.m |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/io/inst/private/__POI_getusedrange__.m Sun Apr 06 20:20:49 2014 +0000 +++ b/main/io/inst/private/__POI_getusedrange__.m Sun Apr 06 20:47:38 2014 +0000 @@ -21,7 +21,8 @@ ## 2012-10-12 Renamed & moved into ./private ## 2012-10-24 Style fixes ## 2013-09-23 Check getFirstCellNum method return value for empty rows -## 2013-12-06 Style fixes +## 2013-12-06 Style fixes +## 2014-04-06 Fix getFirstCellNum return value when checking rightmost cells function [ trow, brow, lcol, rcol ] = __POI_getusedrange__ (xls, ii) @@ -41,7 +42,7 @@ if (! isempty (irow)) scol = irow.getFirstCellNum; ## If getFirstCellNum < 0, row is empty - if (scol >= 1) + if (scol >= 0) lcol = min (lcol, scol); ecol = irow.getLastCellNum - 1; rcol = max (rcol, ecol);