+2005-02-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * CutAndPaste.C (pasteSelectionHelper): fix a crash
+
2005-02-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* buffer.C: format up to 241.
// Convert newline to paragraph break in ERT inset.
// This should not be here!
- if (pars[pit].inInset()->lyxCode() == InsetBase::ERT_CODE) {
+ if (pars[pit].inInset() &&
+ pars[pit].inInset()->lyxCode() == InsetBase::ERT_CODE) {
for (ParagraphList::size_type i = 0; i < insertion.size(); ++i) {
for (pos_type j = 0; j < insertion[i].size(); ++j) {
if (insertion[i].isNewline(j)) {