From 5322e2d2422822246721a58a158e878f2516c742 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Tue, 5 Jun 2012 13:48:17 +0000 Subject: [PATCH] v1.0.3 Feature 1408 - default axis X void, automatique generation of 0,1,2,3....N N= size of vector axis Y --- bbtk/src/bbmaracasvisuPlotterView.cxx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/bbtk/src/bbmaracasvisuPlotterView.cxx b/bbtk/src/bbmaracasvisuPlotterView.cxx index 98a59d0..9a0ee6c 100644 --- a/bbtk/src/bbmaracasvisuPlotterView.cxx +++ b/bbtk/src/bbmaracasvisuPlotterView.cxx @@ -25,9 +25,22 @@ void PlotterView::CreateWidget(wxWindow* parent) mwxwidget->AddLayer(new pPlotterScaleX()); mwxwidget->AddLayer(new pPlotterScaleY()); + std::vector inX; + // avoid 'taking address of temporary ' //pGraphicalFunction *pGF = mwxwidget->getFunctionForVectors( &(bbGetInputInX()), &(bbGetInputInY()) ); // taking address of temporary ! JPRx - std::vector inX = bbGetInputInX(); + if (bbGetInputInX().size()==0) + { + int i,size=bbGetInputInY().size(); + for(i=0;i inY = bbGetInputInY(); pGraphicalFunction *pGF = mwxwidget->getFunctionForVectors( &inX, &inY ); -- 2.47.1