Forgot save paper after creation.
--HG-- branch : feature
This commit is contained in:
parent
f849d16018
commit
b04d1f92e7
|
@ -90,7 +90,7 @@ void VLayoutGenerator::Generate()
|
||||||
if (bank->Prepare())
|
if (bank->Prepare())
|
||||||
{
|
{
|
||||||
CheckDetailsSize();
|
CheckDetailsSize();
|
||||||
do
|
while (bank->AllDetailsCount() > 0)
|
||||||
{
|
{
|
||||||
if (stopGeneration)
|
if (stopGeneration)
|
||||||
{
|
{
|
||||||
|
@ -100,7 +100,7 @@ void VLayoutGenerator::Generate()
|
||||||
VLayoutPaper paper(paperHeight, paperWidth);
|
VLayoutPaper paper(paperHeight, paperWidth);
|
||||||
paper.SetShift(shift);
|
paper.SetShift(shift);
|
||||||
paper.SetPaperIndex(papers.count());
|
paper.SetPaperIndex(papers.count());
|
||||||
if (bank->LeftArrange() > 0)
|
do
|
||||||
{
|
{
|
||||||
const int index = bank->GetTiket();
|
const int index = bank->GetTiket();
|
||||||
if (paper.ArrangeDetail(bank->GetDetail(index), stopGeneration))
|
if (paper.ArrangeDetail(bank->GetDetail(index), stopGeneration))
|
||||||
|
@ -117,9 +117,8 @@ void VLayoutGenerator::Generate()
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} while(bank->LeftArrange() > 0);
|
||||||
else
|
|
||||||
{
|
|
||||||
if (paper.Count() > 0)
|
if (paper.Count() > 0)
|
||||||
{
|
{
|
||||||
papers.append(paper);
|
papers.append(paper);
|
||||||
|
@ -131,8 +130,6 @@ void VLayoutGenerator::Generate()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (bank->AllDetailsCount() > 0);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user