]> git.lyx.org Git - features.git/blobdiff - src/bufferview_funcs.C
fix bug 1798 (from Andr�)
[features.git] / src / bufferview_funcs.C
index 8032e6cdacd7c55662ea69db325edbe0e8da0aea..74688ae6b43e7459a1a77b96ba84d6f795005fa5 100644 (file)
@@ -174,7 +174,10 @@ Point coordOffset(DocIterator const & dit)
                y += par.rows()[rit].height();
        y += par.rows()[par.pos2row(sl.pos())].ascent();
        x += dit.bottom().text()->cursorX(dit.bottom());
-       return Point(x,y);
+       // The following correction should not be there at all.
+       // The cusor looks much better with the -1, though.
+       --x;
+       return Point(x, y);
 }