Index: src/Utils/MyGraph.cpp
===================================================================
--- src/Utils/MyGraph.cpp	(revision 5320)
+++ src/Utils/MyGraph.cpp	(working copy)
@@ -1042,6 +1042,7 @@
 
 	// Iterate the groups.
 	CPoint ptLastLoc(0,0);
+	int dataLastLoc(0);
 
 	CArray<int, int> stackAccumulator;
 	stackAccumulator.SetSize(m_olMyGraphSeries.GetCount());
@@ -1104,7 +1105,7 @@
 			
 
 			// Draw line back to last data member.
-			if (nSeries > 0) {
+			if (nSeries > 0 && (pSeries->GetData(nGroup)!=0 || dataLastLoc != 0)) {
 
 				dc.MoveTo(ptLastLoc.x + 2, ptLastLoc.y - 1);
 				VERIFY(dc.LineTo(ptLoc.x - 3, ptLoc.y - 1));
@@ -1112,12 +1113,17 @@
 
 			// Now draw ellipse.
 			CRect rcEllipse(ptLoc.x - 3, ptLoc.y - 3, ptLoc.x + 3, ptLoc.y + 3);
-			VERIFY(dc.Ellipse(rcEllipse));
+			if(!m_bStackedGraph || pSeries->GetData(nGroup)!=0){
+				VERIFY(dc.Ellipse(rcEllipse));
+			}
 			if (m_olMyGraphSeries.GetCount() < 40)
 			{
 				pSeries->SetTipRegion(nGroup, rcEllipse);
 			}
+
+			// Save last pt and data
 			ptLastLoc = ptLoc;
+			dataLastLoc = pSeries->GetData(nGroup);
 		}
 		VERIFY(dc.SelectObject(pPenOld));
 		dc.SelectObject(&pBrushOld);
