On Thu, Sep 06, 2007 at 12:00:33PM -0000, [EMAIL PROTECTED] wrote: > Author: younes > Date: Thu Sep 6 14:00:32 2007 > New Revision: 20100 > > URL: http://www.lyx.org/trac/changeset/20100 > Log: > InsetCollapsable::draw(): Rename 'top' local variable to baseline as that's > what it is really. > > Modified: > lyx-devel/trunk/src/insets/InsetCollapsable.cpp > > Modified: lyx-devel/trunk/src/insets/InsetCollapsable.cpp > URL: > http://www.lyx.org/trac/file/lyx-devel/trunk/src/insets/InsetCollapsable.cpp?rev=20100 > ============================================================================== > --- lyx-devel/trunk/src/insets/InsetCollapsable.cpp (original) > +++ lyx-devel/trunk/src/insets/InsetCollapsable.cpp Thu Sep 6 14:00:32 2007 > @@ -251,17 +251,17 @@ > // Draw button first -- top, left or only > Dimension dimc = dimensionCollapsed(); > TextMetrics const & tm = pi.base.bv->textMetrics(&text_); > - int const top = y - tm.ascent(); > + int const baseline = y - tm.ascent();
This does not look right. Your 'baseline' seems to be to uppermost y coordinate belonging to the inset, i.e. the 'top'. Andre'