]> git.lyx.org Git - features.git/commitdiff
fix multi-cell selection
authorAlfredo Braunstein <abraunst@lyx.org>
Mon, 3 Sep 2007 22:16:54 +0000 (22:16 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Mon, 3 Sep 2007 22:16:54 +0000 (22:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20026 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index 11603c4af3517330d3b9b460512b10c414b78308..322531df67ff41cffdc3ac2c06a87d951001b008 100644 (file)
@@ -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