[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-octave-devel] Bug#299957: Incorrect arguments given to setfields in vrml_PointLight.m



Package: octave-forge
Version: 2004.11.16-6

Enter octave and run test_vmesh:

> octave
octave:1> test_vmesh
test_vmesh :
Display a surface.
error: setfields: called with odd number of arguments
octave:1>

The bug is in main/vmrl/vrml_PointLight.m, lines 27-29

 h = struct ();

 if nargin, h = leval ("setfields", varargin); end

"h" needs to be the first argument to "setfields". So "h" needs to be added to the beginning of "varargin". The same bug may be in "main/vrml/vrml_Background.m", line 34.

I have an up-to-date (Mar 16, 2005) Debian unstable system on a PC. I have installed octave2.1 version 2.1.67-1.





Reply to: