From 06cfe568bb3b1f07620b0a82d818395e15c15938 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 25 Mar 2009 20:40:43 +0000 Subject: [PATCH] Fill the paragraph metrics cache before checkInsetHit is called and asserts in getPitNearY. LyX asserts when the mouse is over the buffer when it is created. Only trunk and qt4.5 (?) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28908 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextMetrics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index dbf767f821..999308e26a 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -129,7 +129,7 @@ TextMetrics::TextMetrics(BufferView * bv, Text * text) dim_.wid = max_width_; dim_.asc = 10; dim_.des = 10; - + parMetrics(0, true); //text_->updateLabels(bv->buffer()); } -- 2.39.5