+2001-12-05 John Levon <moz@compsoc.man.ac.uk>
+
+ * FormParagraph.C (getCurrentParagraph):
+ (apply): get the right LyXText !
+
2001-11-29 John Levon <moz@compsoc.man.ac.uk>
* FormParagraph.C: disallow page breaks in insets
Paragraph const * FormParagraph::getCurrentParagraph() const
{
- LyXText * text = 0;
-
- if (lv_->view()->theLockingInset())
- text = lv_->view()->theLockingInset()->getLyXText(lv_->view());
- if (!text)
- text = lv_->view()->text;
- return text->cursor.par();
+ return lv_->view()->getLyXText()->cursor.par();
}
}
Spacing const spacing(linespacing, other_linespacing);
- LyXText * text = 0;
- if (lv_->view()->theLockingInset())
- text = lv_->view()->theLockingInset()->getLyXText(lv_->view());
- if (!text)
- text = lv_->view()->text;
+ LyXText * text(lv_->view()->getLyXText());
text->setParagraph(lv_->view(), line_top, line_bottom, pagebreak_top,
pagebreak_bottom, space_top, space_bottom, spacing,
align, labelwidthstring, noindent);