Mercurial > forge
changeset 12623:8156ed4094df octave-forge
bugfix to the "render" subcase in case no render height/width is being specified.
author | michelemartone |
---|---|
date | Sat, 30 May 2015 20:21:51 +0000 |
parents | c3df6726a661 |
children | a7ee9f3100e0 |
files | main/sparsersb/src/sparsersb.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/sparsersb/src/sparsersb.cc Fri May 29 21:12:32 2015 +0000 +++ b/main/sparsersb/src/sparsersb.cc Sat May 30 20:21:51 2015 +0000 @@ -2089,8 +2089,8 @@ rsb_flags_t marf = RSB_MARF_EPS; /* may tell the user to supply a sparsersb matrix in case input is not 'sparse' */ - if (nargin > 2) pmWidth = args(3).scalar_value(); - if (nargin > 3) pmHeight = args(4).scalar_value(); + if (nargin > 3) pmWidth = args(3).scalar_value(); + if (nargin > 4) pmHeight = args(4).scalar_value(); if(!osmp || !osmp->mtxAp) goto ret;/* FIXME: error handling missing here */