]> git.lyx.org Git - lyx.git/commitdiff
Fix cursor positioning problem in scriptinsets with "complex" base...
authorAndré Pönitz <poenitz@gmx.net>
Wed, 6 Nov 2002 11:09:19 +0000 (11:09 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 6 Nov 2002 11:09:19 +0000 (11:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5588 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_scriptinset.h

index baf9099f7fdae856d766955977f0eff0ab72f7e3..5c39f638a781aa8a63e4bdbed4c2e746f7173c50 100644 (file)
@@ -56,7 +56,7 @@ public:
        /// Target pos when we enter the inset from the right by pressing "Left"
        bool idxLast(idx_type & idx, pos_type & pos) const;
        /// can we enter this cell?
-       bool validCell(idx_type i) const { return script_[i]; }
+       bool validCell(idx_type i) const { return i == 2 || script_[i]; }
 
        /// identifies scriptinsets
        MathScriptInset const * asScriptInset() const;