]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_iter.C
mathed25.diff
[features.git] / src / mathed / math_iter.C
index 38c2c59f5ce4bd1997bc24b4dd981ff14e2f3bb8..2f5dfcb8420471c9f546f16103427cd671d6894d 100644 (file)
@@ -411,7 +411,8 @@ MathedArray * MathedIter::Copy(int pos1, int pos2)
                        --pos2;
 
                int dx = pos2 - pos1;
-               a = new MathedArray(dx + MathedArray::ARRAY_MIN_SIZE);
+               a = new MathedArray;
+               a->resize(dx + 1);
                //       lyxerr << "VA " << pos2 << " " << pos2 << " " << dx << endl;
                array->strange_copy(a, (fc) ? 1 : 0, pos1, dx);
                if (fc) {