[Pkg-octave-commit] [octave-geometry] 04/04: d/p/indexing-cell-array.patch: New patch

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Sun May 3 11:19:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository octave-geometry.

commit 5c24176d0274720f823c108e0d3679fa1456c158
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Sun May 3 08:18:19 2015 -0300

    d/p/indexing-cell-array.patch: New patch
---
 debian/patches/indexing-cell-array.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/indexing-cell-array.patch b/debian/patches/indexing-cell-array.patch
new file mode 100644
index 0000000..09c9b3a
--- /dev/null
+++ b/debian/patches/indexing-cell-array.patch
@@ -0,0 +1,30 @@
+Description: Fix indexing of cell array returned by fieldname
+ In @svg/plot.m, the cell array returned by fieldnames() should be
+ indexed as a cell array (with "{}") in order to get the field names as
+ strings. Cset attached.
+ .
+ This bug is exposed by a unit test in the package itself:
+ .
+    octave:1> pkg load geometry
+    octave:2> test @svg/svg
+    ***** test
+     dc = svg('drawing6.svg');
+     dc.plot();
+     dc.plot('color','r','linewidth',2);
+    !!!!! test failed
+    dynamic structure field names must be strings
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Forwarded: https://savannah.gnu.org/bugs/index.php?45001
+Last-Update: 2015-05-03
+
+--- octave-geometry-2.0.0.orig/inst/io/@svg/plot.m
++++ octave-geometry-2.0.0/inst/io/@svg/plot.m
+@@ -40,7 +40,7 @@ function h = plot(obj, varargin)
+ 
+   for i = 1:npath
+     x = []; y = [];
+-    data = obj.Path.(ids(i)).data;
++    data = obj.Path.(ids{i}).data;
+ 
+     for j = 1:numel(data)
+       x = cat (2, x, polyval (data{j}(1,:),t));
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..14ce3b9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+indexing-cell-array.patch

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-geometry.git



More information about the Pkg-octave-commit mailing list