bool BufferView::Pimpl::dispatch(FuncRequest const & cmd)
{
- //lyxerr << "*** BufferView::Pimpl: request: " << cmd << std::endl;
+ //lyxerr << "BufferView::Pimpl::dispatch cmd: " << cmd << std::endl;
// Make sure that the cached BufferView is correct.
lyxerr[Debug::ACTION] << "BufferView::Pimpl::Dispatch:"
<< " action[" << cmd.action << ']'
Paragraph::Paragraph(Paragraph const & par)
- : y(0), height(0), text_(par.text_), begin_of_body_(par.begin_of_body_),
+ : itemdepth(par.itemdepth), insetlist(par.insetlist),
+ rows(par.rows), y(par.y), height(par.height),
+ width(par.width), layout_(par.layout_),
+ text_(par.text_), begin_of_body_(par.begin_of_body_),
pimpl_(new Paragraph::Pimpl(*par.pimpl_, this))
{
- itemdepth = 0;
- // this is because of the dummy layout of the paragraphs that
- // follow footnotes
- layout_ = par.layout();
-
- // copy everything behind the break-position to the new paragraph
- insetlist = par.insetlist;
InsetList::iterator it = insetlist.begin();
InsetList::iterator end = insetlist.end();
for (; it != end; ++it)
lyxerr << "Paragraph::operator=()" << endl;
- text_ = par.text_;
-
- delete pimpl_;
- pimpl_ = new Pimpl(*par.pimpl_, this);
-
itemdepth = par.itemdepth;
- // this is because of the dummy layout of the paragraphs that
- // follow footnotes
- layout_ = par.layout();
- // copy everything behind the break-position to the new paragraph
insetlist = par.insetlist;
InsetList::iterator it = insetlist.begin();
InsetList::iterator end = insetlist.end();
for (; it != end; ++it)
it->inset = it->inset->clone().release();
+
+ rows = par.rows;
+ y = par.y;
+ height = par.height;
+ width = par.width;
+ layout_ = par.layout();
+ text_ = par.text_;
+ begin_of_body_ = par.begin_of_body_;
+
+ delete pimpl_;
+ pimpl_ = new Pimpl(*par.pimpl_, this);
}
Buffer * buf = cur.bv().buffer();
recordUndo(kind, cur, first, last, buf->undostack());
buf->redostack().clear();
- //lyxerr << "undostack:\n";
- //for (size_t i = 0, n = buf->undostack().size(); i != n && i < 6; ++i)
- // lyxerr << " " << i << ": " << buf->undostack()[i] << std::endl;
+ lyxerr << "undostack:\n";
+ for (size_t i = 0, n = buf->undostack().size(); i != n && i < 6; ++i)
+ lyxerr << " " << i << ": " << buf->undostack()[i] << std::endl;
}