[Pkg-octave-commit] [SCM] octave-image branch, master, updated. afa1244262e9c6b58e7fa8390a5c599c4cfddc24

Thomas Weber thomas.weber.mail at gmail.com
Sun Jan 3 21:06:11 UTC 2010


tags 557579 pending
thanks

The following commit has been merged in the master branch:
commit 4560ad6b46b017445e7037afe11e3f390630018b
Author: Thomas Weber <thomas.weber.mail at gmail.com>
Date:   Sun Jan 3 20:40:27 2010 +0100

    Bug fix for 557579

diff --git a/debian/changelog b/debian/changelog
index ffd40ca..645871a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+octave-image (1.0.10-2) UNRELEASED; urgency=low
+
+  * New patch: fix_uppercase_variable, fixes a wrongly uppercased variable
+    name (closes: #557579)
+
+ -- Thomas Weber <thomas.weber.mail at gmail.com>  Sun, 03 Jan 2010 20:37:43 +0100
+
 octave-image (1.0.10-1) unstable; urgency=low
 
   [ Rafael Laboissiere ]
diff --git a/debian/patches/fix_uppercase_variable b/debian/patches/fix_uppercase_variable
new file mode 100644
index 0000000..a741002
--- /dev/null
+++ b/debian/patches/fix_uppercase_variable
@@ -0,0 +1,21 @@
+Subject: Fix wrongly uppercased variable name
+Origin: upstream,http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/image/inst/imtophat.m?pathrev=6692&view=diff&r1=6692&r2=4788&diff_format=h 
+Bug-Debian: http://bugs.debian.org/557579
+--- a/inst/imtophat.m
++++ b/inst/imtophat.m
+@@ -30,6 +30,14 @@
+   endif
+   
+   ## Perform filtering
+-  retval = im & !imopen(im, SE);
++  retval = im & !imopen(im, se);
+ 
+ endfunction
++
++%!test
++%! I = [1 1 1; 1 1 1; 1 1 1;];
++%! se = [1 1; 0 1;];
++%! result = imtophat(I, se);
++%! expected = 0.5 < [0 0 1; 0 0 1; 1 1 1];
++%! assert(expected, result);
++
diff --git a/debian/patches/series b/debian/patches/series
index 2992f48..be3bc5c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 replace_obsoleted_spfind
+fix_uppercase_variable

-- 
octave-image



More information about the Pkg-octave-commit mailing list