Hide SummaryChart legends where none of that data type

This commit is contained in:
Mark Watkins 2011-09-10 18:42:10 +10:00
parent 0cfd82c113
commit 0fcce2ebd5

View File

@ -301,6 +301,7 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height)
QString a;
int x,y;
for (int j=0;j<m_colors.size();j++) {
if (totalcounts[j]==0) continue;
a=channel[m_codes[j]].label();
a+=" ";
switch(m_type[j]) {