RideItem::zones is just a pointer

...not a pointer to a pointer.
This commit is contained in:
Sean Rhea
2009-12-02 10:54:22 -05:00
parent ed0fc60783
commit 327cc57c1c
8 changed files with 46 additions and 57 deletions

View File

@@ -485,7 +485,7 @@ CpintPlot::plot_allCurve(CpintPlot *thisPlot,
// generate zones from derived CP value
if (cp > 0) {
QList <int> power_zone;
int n_zones = (*zones)->lowsFromCP(&power_zone, (int) int(cp));
int n_zones = zones->lowsFromCP(&power_zone, (int) int(cp));
int high = n_values - 1;
int zone = 0;
while (zone < n_zones) {
@@ -499,7 +499,7 @@ CpintPlot::plot_allCurve(CpintPlot *thisPlot,
}
QColor color = zoneColor(zone, n_zones);
QString name = (*zones)->getDefaultZoneName(zone);
QString name = zones->getDefaultZoneName(zone);
QwtPlotCurve *curve = new QwtPlotCurve(name);
curve->setRenderHint(QwtPlotItem::RenderAntialiased);
QPen pen(color);