Index: /trunk/BNC/bncfigure.cpp
===================================================================
--- /trunk/BNC/bncfigure.cpp	(revision 1989)
+++ /trunk/BNC/bncfigure.cpp	(revision 1990)
@@ -179,4 +179,15 @@
     int xx = xMin+80+anchor*12;
 
+    if(_maxRate > 0.0) {
+      int yy = int(yLength * (it.value()->_mean / _maxRate));
+      QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
+      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 
+                       QBrush(color,Qt::SolidPattern));
+      painter.setPen(Qt::black);
+      if(it.value()->_mean<=0) {
+        painter.setPen(Qt::red);
+      }
+    }
+
     painter.save();
     painter.translate(xx-13, int(yMax-yMin)*xLine+65);
@@ -185,11 +196,4 @@
     painter.restore();
 
-    if(_maxRate > 0.0) {
-      int yy = int(yLength * (it.value()->_mean / _maxRate));
-      QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
-      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 
-                       QBrush(color,Qt::SolidPattern));
-    }
-
     anchor++;
   }
Index: /trunk/BNC/bncfigurelate.cpp
===================================================================
--- /trunk/BNC/bncfigurelate.cpp	(revision 1989)
+++ /trunk/BNC/bncfigurelate.cpp	(revision 1990)
@@ -146,4 +146,15 @@
     int xx = xMin+80+anchor*12;
 
+    if(maxLate > 0.0) {
+      int yy = int(yLength * (it.value() / maxLate));
+      QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
+      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 
+                       QBrush(color,Qt::SolidPattern));
+      painter.setPen(Qt::black);
+      if(it.value()<=0) {
+        painter.setPen(Qt::red);
+      }
+    }
+
     painter.save();
     painter.translate(xx-13, int(yMax-yMin)*xLine+65);
@@ -152,11 +163,4 @@
     painter.restore();
 
-    if(maxLate > 0.0) {
-      int yy = int(yLength * (it.value() / maxLate));
-      QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
-      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 
-                       QBrush(color,Qt::SolidPattern));
-    }
-
     anchor++;
   }
