mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
d091b17e92
commit
cfdd1f4b61
@ -59,6 +59,7 @@ void PreviewedInset::addPreview(graphics::PreviewLoader & ploader)
|
||||
return;
|
||||
|
||||
snippet_ = support::trim(latexString(ploader.buffer()));
|
||||
pimage_ = 0;
|
||||
if (snippet_.empty())
|
||||
return;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user