mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
cure a couple of funny new bugs introduced in my latest patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8556 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fce4ab0e79
commit
374e280417
@ -85,7 +85,7 @@ int SwitchLayoutsBetweenClasses(textclass_type c1, textclass_type c2,
|
|||||||
InsetText in;
|
InsetText in;
|
||||||
std::swap(in.paragraphs(), pars);
|
std::swap(in.paragraphs(), pars);
|
||||||
|
|
||||||
ParIterator end = ParIterator(in, pars.size());
|
ParIterator end = ParIterator(DocumentIterator());
|
||||||
for (ParIterator it = ParIterator(in, 0); it != end; ++it) {
|
for (ParIterator it = ParIterator(in, 0); it != end; ++it) {
|
||||||
string const name = it->layout()->name();
|
string const name = it->layout()->name();
|
||||||
bool hasLayout = tclass2.hasLayout(name);
|
bool hasLayout = tclass2.hasLayout(name);
|
||||||
@ -309,8 +309,8 @@ pasteSelection(Buffer const & buffer, ParagraphList & pars,
|
|||||||
InsetText in;
|
InsetText in;
|
||||||
std::swap(in.paragraphs(), insertion);
|
std::swap(in.paragraphs(), insertion);
|
||||||
|
|
||||||
ParIterator fpit(in, 0);
|
ParIterator fpit = ParIterator(in, 0);
|
||||||
ParIterator fend(in, insertion.size());
|
ParIterator fend = ParIterator(DocumentIterator());
|
||||||
|
|
||||||
for (; fpit != fend; ++fpit) {
|
for (; fpit != fend; ++fpit) {
|
||||||
InsetList::iterator lit = fpit->insetlist.begin();
|
InsetList::iterator lit = fpit->insetlist.begin();
|
||||||
|
Loading…
Reference in New Issue
Block a user