Index: src/text2.C
===================================================================
--- src/text2.C (revision 16272)
+++ src/text2.C (working copy)
@@ -999,6 +999,11 @@
       }
       pit_type pit = getPitNearY(cur.bv(), y);
       BOOST_ASSERT(pit != -1);
+       // When another window is opened with the same document, rows()
+       // will be cleared so pars_[pit].rows() might be empty when switching
+       // between windwos.
+       if (pars_[pit].rows().empty())
+               redoParagraph(cur.bv(), pit);
       Row const & row = getRowNearY(cur.bv(), y, pit);
       bool bound = false;


As described, the problem is that rows() of paragraphs will get lost
if the buffer is opened in another window. redoParagraph is then
required.

Another related problem is that when the mouse click back, lyx scrolls
back to the paragraph with the text cursor. I am having a look at it.

Bo

Reply via email to