Andre Poenitz wrote:

> 
> [We had discussed this already once, but as this is 'fundamental' I
> thought we'd better agree explicitly on it ;-)]
> 
> This replaces the LyXText 'semi member' of BufferView by a real
> LyXText member of Buffer.

[snip...]

> Comments?

This (below) seems fundamentally wrong. If the LyXText needs to know 
the width of the WorkArea, then it isn't a Buffer property at all.
Of course, this maybe the 'prepares for' bit ;-)

Index: BufferView_pimpl.C
===================================================================
        // set current buffer
        buffer_ = b;
+       buffer_->text().init(bv_);
+       buffer_->text().textwidth_ = workarea().workWidth();
+       buffer_->text().fullRebreak();

> 
> Andre'

-- 
Angus

Reply via email to