* LyX tries to delete /tmp if it is called with invalid arguments
FIXED (Enrico 2006-12-13)
+* Start lyx, open a document, scroll down, open a new window, move
+ the cursor back, lyx crashes because par::rows() is cleared when the
+ new window is created.
+ FIXED (Bo 2006-12-13)
+
}
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. A better solution is that each buffer view
+ // has its own rows() for the same buffer.
+ if (pars_[pit].rows().empty())
+ redoParagraph(cur.bv(), pit);
Row const & row = getRowNearY(cur.bv(), y, pit);
bool bound = false;