From fac886890377f3e932a6f7178a69f22ad11b9602 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 22 May 2013 16:20:54 -0300 Subject: [PATCH] Fixed update the plot as we resize the view. Signed-off-by: Tomaz Canabrava --- qt-ui/profilegraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 637c7fe95..da18574ec 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -1136,7 +1136,7 @@ QGraphicsSimpleTextItem *ProfileGraphicsView::plot_text(text_render_options_t *t void ProfileGraphicsView::resizeEvent(QResizeEvent *event) { - plot(dive); + fitInView(sceneRect()); } void ProfileGraphicsView::plot_temperature_profile()