* CutAndPaste.C (cutSelection): another layout settings forgotten.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3684 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-03-07 10:22:42 +00:00
parent 3173a2ee45
commit 9069560786
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-03-07 Juergen Vigna <jug@sad.it>
* CutAndPaste.C (cutSelection): another layout settings forgotten.
2002-03-07 Lars Gullik Bjønnes <larsbj@birdstep.com>
* paragraph.C (breakParagraph): use default layout not layout of

View File

@ -92,8 +92,10 @@ bool CutAndPaste::cutSelection(Paragraph * startpar, Paragraph ** endpar,
if (!(*endpar) || startpar == (*endpar)) {
// only within one paragraph
if (realcut)
if (realcut) {
buf = new Paragraph;
buf->layout(startpar->layout());
}
pos_type i = start;
if (end > startpar->size())
end = startpar->size();