More work on graphs

This commit is contained in:
cncfanatics
2010-11-12 12:01:55 +01:00
parent 1006aec8a6
commit 72a49fcd6f
4 changed files with 54 additions and 20 deletions

View File

@@ -59,9 +59,7 @@ class FitDpsGraph(Graph):
return icons
def getPoints(self, fields):
sFit = service.Fit.getInstance()
fit = sFit.getFit(self.mainFrame.getActiveFit())
def getPoints(self, fit, fields):
fitDps = getattr(self, "fitDps", None)
if fitDps is None or fitDps.fit != fit:
fitDps = self.fitDps = FitDps(fit)