From 3a6a83c28ab69f8a02ed1e681fb1833312d2e4e0 Mon Sep 17 00:00:00 2001 From: Rafael Martins Date: Tue, 12 Jul 2011 20:52:00 +0000 Subject: Revision bump. Fixes bug #373985. Thanks to trubatch@hotmail.com for reporting. (Portage version: 2.2.0_alpha43/cvs/Linux x86_64) --- .../octave/files/octave-3.4.0-fftshift.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sci-mathematics/octave/files/octave-3.4.0-fftshift.patch (limited to 'sci-mathematics/octave/files/octave-3.4.0-fftshift.patch') 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); + -- cgit v1.2.3-65-gdbad