Closed GoogleCodeExporter closed 9 years ago
Printing stops at the first channel with empty mixers even if following
channels have some..
The following patch seems to fix the problem:
--- printdialog.cpp 2011-10-19 01:28:21.907044191 +0200
+++ printdialog-new.cpp 2011-10-19 01:31:45.406135111 +0200
@@ -200,8 +200,14 @@
if(lastCHN!=md->destCh)
{
str.append("<br>");
- continue;
- }
+ lastCHN++;
+ for (int k=lastCHN+1; k<md->destCh; k++) {
+ lastCHN++;
+ str.append(tr("CH%1<br>").arg(lastCHN,2,10,QChar('0')));
+ }
+ lastCHN++;
+ str.append(tr("CH%1").arg(lastCHN,2,10,QChar('0')));
+ }
str.append("<font size=+1 face='Courier New' color=green>");
Original comment by romolo.m...@gmail.com
on 18 Oct 2011 at 11:33
Sorry but the provided patch was wrong...
Was skipping a channel...
this should be right...
--- printdialog.cpp 2011-10-19 01:28:21.907044191 +0200
+++ printdialog-new.cpp 2011-10-19 01:31:45.406135111 +0200
@@ -200,8 +200,13 @@
if(lastCHN!=md->destCh)
{
str.append("<br>");
- continue;
- }
+ lastCHN++;
+ for (int k=lastCHN; k<md->destCh; k++) {
+ str.append(tr("CH%1<br>").arg(lastCHN,2,10,QChar('0')));
+ lastCHN++;
+ }
+ str.append(tr("CH%1").arg(lastCHN,2,10,QChar('0')));
+ }
str.append("<font size=+1 face='Courier New' color=green>");
Original comment by romolo.m...@gmail.com
on 19 Oct 2011 at 6:10
Original comment by erezra...@gmail.com
on 22 Oct 2011 at 12:25
Original issue reported on code.google.com by
romolo.m...@gmail.com
on 18 Oct 2011 at 11:03