Don't try and generate the previews from draw.

insetUnlock is already doing a fine job...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7892 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-10-10 14:20:59 +00:00
parent d091b17e92
commit cfdd1f4b61
3 changed files with 6 additions and 6 deletions

View File

@ -59,6 +59,7 @@ void PreviewedInset::addPreview(graphics::PreviewLoader & ploader)
return;
snippet_ = support::trim(latexString(ploader.buffer()));
pimage_ = 0;
if (snippet_.empty())
return;

View File

@ -1,3 +1,8 @@
2003-10-10 Angus Leeming <leeming@lyx.org>
* formula.C (draw): don't try and generate the previews from draw.
insetUnlock is already doing a fine job...
2003-10-09 Angus Leeming <leeming@lyx.org>
* formula.C (metrics, draw): no longer need to pass a Buffer arg

View File

@ -200,12 +200,6 @@ void InsetFormula::draw(PainterInfo & pi, int x, int y) const
bool const editing_inset = mathcursor && mathcursor->formula() == this;
bool const use_preview = !editing_inset && preview_->previewReady();
if (!editing_inset && bv) {
Buffer const * buffer_ptr = bv->buffer();
if (buffer_ptr)
preview_->generatePreview(*buffer_ptr);
}
int const w = dim_.wid;
int const d = dim_.des;
int const a = dim_.asc;