Create a version of create_graph_info that doesn't depend on GC.

This version of the create plot info is the same as before, with the
difference that it doesn't depends on the gc.
Also fixed a crash.

The Pressure Index, Information and interpolated seems wrong,
I'm getting only zeroes.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-17 14:43:25 -02:00 committed by Dirk Hohndel
parent 0787347691
commit 779c1b6738
4 changed files with 21 additions and 1 deletions

View file

@ -277,6 +277,7 @@ void ProfileWidget2::plotDives(QList<dive*> dives)
* shown.
*/
struct plot_info pInfo = calculate_max_limits_new(d, currentdc);
create_plot_info_new(d, currentdc, &pInfo);
int maxtime = get_maxtime(&pInfo);
int maxdepth = get_maxdepth(&pInfo);