// temporary set *par as previous of tmpbuf as we might have to realize
// the font.
tmpbuf->previous(*par);
+
+ // make sure there is no class difference
+ SwitchLayoutsBetweenClasses(textclass, tc, tmpbuf,
+ current_view->buffer()->params);
+
Paragraph::depth_type max_depth = (*par)->getMaxDepthAfter(current_view->buffer());
+
while(tmpbuf) {
// if we have a negative jump so that the depth would go below
// 0 depth then we have to redo the delta to this new max depth
// now reset it to 0
buf->previous(0);
- // make sure there is no class difference
- SwitchLayoutsBetweenClasses(textclass, tc, buf,
- current_view->buffer()->params);
-
// make the buf exactly the same layout than
// the cursor paragraph
buf->makeSameLayout(*par);
int CutAndPaste::SwitchLayoutsBetweenClasses(textclass_type c1,
textclass_type c2,
Paragraph * par,
- BufferParams const & bparams)
+ BufferParams const & /*bparams*/)
{
int ret = 0;
if (!par || c1 == c2)