(painting problems after load of instant preview image)

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147622.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28276 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-01-25 12:24:03 +00:00
parent 3d018a6d94
commit 86ea78391e

View File

@ -124,6 +124,8 @@ void RenderPreview::metrics(MetricsInfo & mi, Dimension & dim) const
getPreviewImage(mi.base.bv->buffer());
if (pimage) {
// If prepared, load the picture before dim calculation. See bug #5627.
pimage->image();
dim = pimage->dim();
} else {
dim.asc = 50;