revert accidential change

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4617 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-07-12 11:09:01 +00:00
parent 6adb9c9122
commit e7d7e75c0a

View File

@ -214,10 +214,6 @@ void InsetFormula::read(Buffer const *, LyXLex & lex)
void InsetFormula::draw(BufferView * bv, LyXFont const & font,
int y, float & xx, bool) const
{
// This initiates the loading of the preview, so should come
// before the metrics are computed.
bool const use_preview = preview_->usePreview();
int const x = int(xx);
int const w = width(bv, font);
int const d = descent(bv, font);
@ -226,9 +222,9 @@ void InsetFormula::draw(BufferView * bv, LyXFont const & font,
MathPainterInfo pi(bv->painter());
if (use_preview) {
if (preview_->usePreview()) {
pi.pain.image(x + 1, y - a + 1, w - 2, h - 2,
*(preview_->pimage_->image(*this, *bv)));
*(preview_->pimage_->image()));
} else {
//pi.base.style = display() ? LM_ST_DISPLAY : LM_ST_TEXT;
pi.base.style = LM_ST_TEXT;
@ -530,7 +526,7 @@ bool InsetFormula::PreviewImpl::usePreview() const
if (!pimage_)
return false;
return pimage_->image(parent_, *view);
return pimage_->image();
}