Blame octave-2.9.8-misc.patch
|
Quentin Spencer |
908aa1a |
Index: liboctave/mx-inlines.cc
|
|
Quentin Spencer |
908aa1a |
===================================================================
|
|
Quentin Spencer |
908aa1a |
RCS file: /cvs/octave/liboctave/mx-inlines.cc,v
|
|
Quentin Spencer |
908aa1a |
retrieving revision 1.49
|
|
Quentin Spencer |
908aa1a |
retrieving revision 1.50
|
|
Quentin Spencer |
908aa1a |
diff -u -r1.49 -r1.50
|
|
Quentin Spencer |
908aa1a |
--- liboctave/mx-inlines.cc 22 Aug 2006 18:37:43 -0000 1.49
|
|
Quentin Spencer |
908aa1a |
+++ liboctave/mx-inlines.cc 26 Aug 2006 03:02:39 -0000 1.50
|
|
Quentin Spencer |
908aa1a |
@@ -383,6 +383,12 @@
|
|
Quentin Spencer |
908aa1a |
} \
|
|
Quentin Spencer |
908aa1a |
} \
|
|
Quentin Spencer |
908aa1a |
\
|
|
Quentin Spencer |
908aa1a |
+ if (nd == 2 && dv(0) == 0 && dv(1) == 0) \
|
|
Quentin Spencer |
908aa1a |
+ { \
|
|
Quentin Spencer |
908aa1a |
+ retval.resize (dim_vector (1, 1), INIT_VAL); \
|
|
Quentin Spencer |
908aa1a |
+ return retval; \
|
|
Quentin Spencer |
908aa1a |
+ } \
|
|
Quentin Spencer |
908aa1a |
+ \
|
|
Quentin Spencer |
908aa1a |
/* We need to find first non-singleton dim. */ \
|
|
Quentin Spencer |
908aa1a |
\
|
|
Quentin Spencer |
908aa1a |
if (dim == -1) \
|