summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2011-07-12 20:52:00 +0000
committerRafael Martins <rafaelmartins@gentoo.org>2011-07-12 20:52:00 +0000
commit3a6a83c28ab69f8a02ed1e681fb1833312d2e4e0 (patch)
treeeac22475a1ffacd1c043d7b987b047fac29db184 /sci-mathematics/octave/files/octave-3.4.0-fftshift.patch
parentUse the session files from kdm, bug 364861 (diff)
downloadgentoo-2-3a6a83c28ab69f8a02ed1e681fb1833312d2e4e0.tar.gz
gentoo-2-3a6a83c28ab69f8a02ed1e681fb1833312d2e4e0.tar.bz2
gentoo-2-3a6a83c28ab69f8a02ed1e681fb1833312d2e4e0.zip
Revision bump. Fixes bug #373985. Thanks to trubatch@hotmail.com for reporting.
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics/octave/files/octave-3.4.0-fftshift.patch')
-rw-r--r--sci-mathematics/octave/files/octave-3.4.0-fftshift.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/sci-mathematics/octave/files/octave-3.4.0-fftshift.patch b/sci-mathematics/octave/files/octave-3.4.0-fftshift.patch
new file mode 100644
index 000000000000..bf163dede1d2
--- /dev/null
+++ b/sci-mathematics/octave/files/octave-3.4.0-fftshift.patch
@@ -0,0 +1,19 @@
+Reference: http://hg.savannah.gnu.org/hgweb/octave/rev/189baf055143
+
+diff -r e4dbfe3019b1 -r 189baf055143 scripts/signal/fftshift.m
+--- a/scripts/signal/fftshift.m Sat Feb 19 18:21:58 2011 -0800
++++ b/scripts/signal/fftshift.m Sun Feb 20 17:53:41 2011 -0800
+@@ -65,9 +65,9 @@
+ retval = x(idx{:});
+ else
+ if (isvector (x))
+- x = length (x);
+- xx = ceil (x/2);
+- retval = x([xx+1:x, 1:xx]);
++ xl = length (x);
++ xx = ceil (xl/2);
++ retval = x([xx+1:xl, 1:xx]);
+ elseif (ismatrix (x))
+ nd = ndims (x);
+ sz = size (x);
+