]> git.lyx.org Git - features.git/commitdiff
ws changes
authorLars Gullik Bjønnes <larsbj@gullik.org>
Sat, 6 Apr 2002 12:50:33 +0000 (12:50 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Sat, 6 Apr 2002 12:50:33 +0000 (12:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3918 a592a061-630c-0410-9148-cb99ea01b6c8

src/CutAndPaste.C

index d5306afd315e153d959a6ce4765c403075a11cff..e3fabf53e66de5abdd9ec0f6949c53ab401482c3 100644 (file)
@@ -283,13 +283,13 @@ bool CutAndPaste::pasteSelection(Paragraph ** par, Paragraph ** endpar,
                // 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);
-               
+                                           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