From: Alfredo Braunstein Date: Mon, 3 Sep 2007 22:16:54 +0000 (+0000) Subject: fix multi-cell selection X-Git-Tag: 1.6.10~8523 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cdd5c1bb172b9f305b8050ec71bdcbb29c168d30;p=features.git fix multi-cell selection git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20026 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 11603c4af3..322531df67 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1873,6 +1873,10 @@ void TextMetrics::drawSelection(PainterInfo & pi, int x, int) const return; if (!ptr_cmp(cur.text(), text_)) return; + + //if the anchor is outside, this is not our selection + if (!ptr_cmp(cur.anchor().text(), text_)) + return; LYXERR(Debug::DEBUG) << BOOST_CURRENT_FUNCTION