diff options
-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 ad412e4b0..fe5d79b4e 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -1064,7 +1064,7 @@ void ProfileGraphicsView::plot_depth_profile() for (i = 0; i < gc.pi.nr; i++, entry++) p.append(QPointF(SCALEGC(entry->sec, entry->depth))); - for (i = gc.pi.nr - 1; i >= 0; i--, entry--) { + for (i-- , entry--; i >= 0; i--, entry--) { if (entry->ndl == 0 && entry->stopdepth > entry->depth) { p.append(QPointF(SCALEGC(entry->sec, entry->stopdepth))); } else { |