negativerad / eepe

Automatically exported from code.google.com/p/eepe
0 stars 0 forks source link

Printing model does not print all mixers #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a new model
2.Add mixes to ch9 in my case input P1 weight 100%
3.Try to print model

What is the expected output? What do you see instead?
See all mixes in printing as seen in the mixers tab, instead only first 8 
channel get mixers printed

What version of the product are you using? On what operating system?
274 Linux

Please provide any additional information below.

Original issue reported on code.google.com by romolo.m...@gmail.com on 18 Oct 2011 at 11:03

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by erezra...@gmail.com on 22 Oct 2011 at 12:25