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())
|
||||
{
|
||||
CheckDetailsSize();
|
||||
do
|
||||
while (bank->AllDetailsCount() > 0)
|
||||
{
|
||||
if (stopGeneration)
|
||||
{
|
||||
|
@ -100,7 +100,7 @@ void VLayoutGenerator::Generate()
|
|||
VLayoutPaper paper(paperHeight, paperWidth);
|
||||
paper.SetShift(shift);
|
||||
paper.SetPaperIndex(papers.count());
|
||||
if (bank->LeftArrange() > 0)
|
||||
do
|
||||
{
|
||||
const int index = bank->GetTiket();
|
||||
if (paper.ArrangeDetail(bank->GetDetail(index), stopGeneration))
|
||||
|
@ -117,9 +117,8 @@ void VLayoutGenerator::Generate()
|
|||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} while(bank->LeftArrange() > 0);
|
||||
|
||||
if (paper.Count() > 0)
|
||||
{
|
||||
papers.append(paper);
|
||||
|
@ -131,8 +130,6 @@ void VLayoutGenerator::Generate()
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
} while (bank->AllDetailsCount() > 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user