From 4d0d67872e8d97658b9e5e10d290c7942f14dfa4 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 19 Mar 2010 01:43:53 +0000 Subject: [PATCH] Fix at least the most immediate manifestation of bug #6454. Investigation of this bug revealed that we are blinking the cursor even when it is not visible. This should also be reverted. It may, in a way, be that bug that caused this one, but this check is worth doing anyway. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33797 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextMetrics.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 80a6449053..6fca429b5a 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -328,7 +328,12 @@ bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos, // no RTL boundary at paragraph start if (pos == 0) return false; - + + // if the metrics have not been calculated, then we are not + // on screen and can safely ignore issues about boundaries. + if (!contains(pit)) + return false; + ParagraphMetrics & pm = par_metrics_[pit]; // no RTL boundary in empty paragraph if (pm.rows().empty()) -- 2.39.2