}
+// FIXME, there's only one WorkArea per LyXView possible for now.
+WorkArea const * LyXView::currentWorkArea() const
+{
+ return work_area_;
+}
+
+
+// FIXME, there's only one WorkArea per LyXView possible for now.
+WorkArea * LyXView::currentWorkArea()
+{
+ return work_area_;
+}
+
+
Buffer * LyXView::buffer() const
{
BOOST_ASSERT(work_area_);
{
Buffer const * buffer_ptr = 0;
if (inset) {
- buffer_ptr = work_area_->bufferView().buffer();
- // No FitCursor:
BOOST_ASSERT(work_area_);
- work_area_->bufferView().update(Update::Force);
- work_area_->redraw();
+ work_area_->sheduleRedraw();
+
+ buffer_ptr = work_area_->bufferView().buffer();
}
return buffer_ptr;
}