cleanup my latest cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3178 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-12-10 13:30:27 +00:00
parent b78b32b554
commit bf94991c65
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-12-10 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* insettext.C (draw): re-introduce the calls to width() ascent()
and descent() to initialize the caching variables.
2001-12-09 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* insettext.C (draw):

View File

@ -413,8 +413,14 @@ void InsetText::draw(BufferView * bv, LyXFont const & f,
return;
}
// call these methods so that insetWidth, insetAscent and
// insetDescent have the right values.
width(bv, f);
ascent(bv, f);
descent(bv, f);
top_baseline = baseline;
top_y = baseline - ascent(bv, f);
top_y = baseline - insetAscent;
if (last_drawn_width != insetWidth) {
if (!cleared)