minor fix: odf print slot
authorKonrad Rosenbaum <konrad@silmor.de>
Sun, 18 Aug 2013 19:32:24 +0000 (21:32 +0200)
committerKonrad Rosenbaum <konrad@silmor.de>
Sun, 18 Aug 2013 19:33:42 +0000 (21:33 +0200)
src/dialogs/orderwin.cpp

index 78bfa5b..8c62c5c 100644 (file)
@@ -487,7 +487,7 @@ void MOrderWindow::saveBill()
        MOdtSignalRenderer rend(tf);
        connect(&rend,SIGNAL(getVariable(QString,QVariant&)), this,SLOT(getVariable(QString,QVariant&)));
        connect(&rend,SIGNAL(getLoopIterations(QString,int&)), this,SLOT(getLoopIterations(QString,int&)));
-       connect(&rend,SIGNAL(setLoopIteration(QString,int)), this,SLOT(setLoopIteration(QString,int&)));
+       connect(&rend,SIGNAL(setLoopIteration(QString,int)), this,SLOT(setLoopIteration(QString,int)));
        rend.renderToFile(fname);
        donePrintBuffer();
 }
@@ -659,8 +659,9 @@ void MOrderWindow::initPrintBuffer()
        //get tickets (only valid ones, only those that are to be paid)
        QList<MOTicket>tlst=m_order.tickets();
        for(int i=0;i<tlst.size();i++)
-               if(!tlst[i].ticketid().isNull() && (tlst[i].status()&MOTicket::MaskPay)!=0)
+               if(!tlst[i].ticketid().isNull() && (tlst[i].status()&MOTicket::MaskPay)!=0){
                        printBuffer.tickets.append(tlst[i]);
+                }
        //accumulated view on tickets
        for(int i=0;i<printBuffer.tickets.size();i++){
                MOTicket t=printBuffer.tickets[i];