diff --git a/lib/jkqtplotter/jkqtplotter.h b/lib/jkqtplotter/jkqtplotter.h index 829cca1e5f..5de081c441 100644 --- a/lib/jkqtplotter/jkqtplotter.h +++ b/lib/jkqtplotter/jkqtplotter.h @@ -781,7 +781,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPlotter: public QWidget { inline void clearGraphs(bool deleteGraphs=true) { plotter->clearGraphs(deleteGraphs); } /** \copydoc JKQTBasePlotter::addGraph() */ - inline void addGraph(JKQTPPlotElement* gr) { plotter->addGraph(gr); } + inline size_t addGraph(JKQTPPlotElement* gr) { return plotter->addGraph(gr); } /** \copydoc JKQTBasePlotter::addGraphOnTop() */ inline void addGraphOnTop(JKQTPPlotElement* gr) { plotter->addGraphOnTop(gr); } /** \copydoc JKQTBasePlotter::addGraphAtBottom() */