]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_cursor.C
mathed57.diff
[features.git] / src / mathed / math_cursor.C
index 81aba8a6a2e0eaaa37a2ed4fea1329298b56d096..cb38e47bb3168791f3883f494292d1b1764723c4 100644 (file)
@@ -82,7 +82,9 @@ struct MathStackXIter {
        }
 
        MathedXIter * Item(int idx) {
-               return (idx + 1 <= i) ? &item[i - idx - 1] : 0;
+               if (idx + 1 > i)
+                       cerr << "Wrong index: " << idx << " i: " << i << endl;
+               return &item[i - idx - 1];
        }
 
        void Reset() {