diff --git a/Graphs/gFlagsLine.cpp b/Graphs/gFlagsLine.cpp
index 82d1a321..92343807 100644
--- a/Graphs/gFlagsLine.cpp
+++ b/Graphs/gFlagsLine.cpp
@@ -155,8 +155,7 @@ void gFlagsLine::paint(gGraph & w,int left, int top, int width, int height)
             } else if (m_flt==FT_Span) {
                 x2=(Y-minx)*xmult+left;
                 //w1=x2-x1;
-                quads->add(x1,bartop,x1,bottom);
-                quads->add(x2,bottom,x2,bartop);
+                quads->add(x1,bartop,x1,bottom,x2,bottom,x2,bartop,m_flag_color);
                 if (quads->full()) { verts_exceeded=true; break; }
             }
         }
diff --git a/Graphs/gLineOverlay.cpp b/Graphs/gLineOverlay.cpp
index 5ab6aa87..6abdceb9 100644
--- a/Graphs/gLineOverlay.cpp
+++ b/Graphs/gLineOverlay.cpp
@@ -78,8 +78,7 @@ void gLineOverlayBar::paint(gGraph & w, int left, int topp, int width, int heigh
                 if (x2<left) x2=left;
                 if (x1>width+left) x1=width+left;
                 //double w1=x2-x1;
-                quads->add(x1,start_py,x2,start_py);
-                quads->add(x2,start_py+height,x1,start_py+height);
+                quads->add(x1,start_py,x2,start_py,x2,start_py+height,x1,start_py+height,m_flag_color);
                 if (quads->full()) { verts_exceeded=true; break; }
             } else if (m_flt==FT_Dot) {
                 if ((pref["AlwaysShowOverlayBars"].toInt()==0) || (xx<3600000)) {