]> git.lyx.org Git - features.git/blobdiff - src/mathed/array.C
mathed87.diff (Bug fixes, new feature "change font on selection")
[features.git] / src / mathed / array.C
index bf2d916877ad45688d635d0f3473dc9e86c664d6..a1e7063a4bf0b0e135862160d1313fef5af9eeea 100644 (file)
@@ -110,6 +110,14 @@ MathTextCodes MathArray::GetCode(int pos) const
        return pos < size() ? MathTextCodes(bf_[pos]) : LM_TC_MIN;
 }
 
+void MathArray::setCode(int pos, MathTextCodes t)
+{
+       if (pos > size() || isInset(pos))
+               return;
+       bf_[pos] = t;
+       bf_[pos + 2] = t;
+}
+
 void MathArray::insert(int pos, MathInset * p)
 {
        bf_.insert(bf_.begin() + pos, 2 + sizeof(p), LM_TC_INSET);