]> git.lyx.org Git - features.git/commitdiff
Move the cursor a bit to the right in empty cells...
authorAndré Pönitz <poenitz@gmx.net>
Wed, 8 May 2002 16:17:57 +0000 (16:17 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 8 May 2002 16:17:57 +0000 (16:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4139 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index 914d4e3b484090779facb48cecd2cc6370e9b534..4a4fd6c6ec9836c19f8efb2f00644043f8d01392 100644 (file)
@@ -815,6 +815,9 @@ void MathCursor::getPos(int & x, int & y)
 #warning This should probably take cellXOffset and cellYOffset into account
 #endif
        x = xarray().xo() + xarray().pos2x(pos());
+       // move cursor visually into empty cells ("blue rectangles");
+       if (array().empty())
+               x += 2;
        y = xarray().yo();
 }