UI restructure: plotDive: plot current dive by default & use displayed_dive

No longer use the dive structure that is passed in but instead always use
the displayed_dive to display things.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-07-02 20:00:57 -07:00
parent cd65c8512d
commit 2a55e55868
4 changed files with 27 additions and 24 deletions

View file

@ -202,7 +202,7 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
profile->setFrameStyle(profileFrameStyle);
profile->setPrintMode(false);
profile->resize(originalSize);
profile->plotDive(current_dive);
profile->plotDive();
}
/* we create a table that has a fixed height, but can stretch to fit certain width */