diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 16:20:54 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 16:21:07 -0300 |
commit | fac886890377f3e932a6f7178a69f22ad11b9602 (patch) | |
tree | 0000d9fef3dd9bba5a2c550b4e19bb9402a4f800 | |
parent | d6bee060afaaf54b731c1e27b130089ebb5a9e40 (diff) | |
download | subsurface-fac886890377f3e932a6f7178a69f22ad11b9602.tar.gz |
Fixed update the plot as we resize the view.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
-rw-r--r-- | qt-ui/profilegraphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() |