]> git.lyx.org Git - features.git/commitdiff
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5627
authorPavel Sanda <sanda@lyx.org>
Sun, 25 Jan 2009 12:24:03 +0000 (12:24 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 25 Jan 2009 12:24:03 +0000 (12:24 +0000)
(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

src/insets/RenderPreview.cpp

index 0b12539d20a41143d5e5c17915c1f870acca69da..c9086d5282a28a98196699896a5eb460250fa69d 100644 (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;