Index: trunk/psLib/src/math/psBinaryOp.c
===================================================================
--- trunk/psLib/src/math/psBinaryOp.c	(revision 4540)
+++ trunk/psLib/src/math/psBinaryOp.c	(revision 6885)
@@ -30,6 +30,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-07-12 19:12:01 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-04-18 22:04:28 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -497,4 +497,5 @@
                 return NULL;
             }
+            ((psVector*)out)->n = ((psVector*)in2)->n;
             BINARY_OP(SCALAR, VECTOR, out, psType1, op, psType2);       // scalar op vector
         } else if (dim2 == PS_DIMEN_IMAGE) {
@@ -520,4 +521,5 @@
                 return NULL;
             }
+            ((psVector*)out)->n = ((psVector*)in1)->n;
             BINARY_OP(VECTOR, SCALAR, out, psType1, op, psType2);       // vector op scalar
         } else if (dim2 == PS_DIMEN_VECTOR || dim2 == PS_DIMEN_TRANSV) {
@@ -528,4 +530,5 @@
                 return NULL;
             }
+            ((psVector*)out)->n = ((psVector*)in2)->n;
             BINARY_OP(VECTOR, VECTOR, out, psType1, op, psType2);       // vector op vector
         } else if (dim2 == PS_DIMEN_IMAGE) {
