void pPlotterWindow::setActualScales()
{
// int maxX,maxY,minX,minY; // JPRx
+ int maxX,maxY;//,minX,minY; // JPRx //EED
/*
if the function is drawed interactively the maxX and the
maxY in actual are sets by the user
function->initializeSplineVectors();
UpdateAll();
}
- // bool added1= functions.Append(function)!=NULL; // JPRx
+
+// bool added1= functions.Append(function)!=NULL; // JPRx
+ functions.Append(function); //EED
int id=functions.IndexOf(function);
- /* bool added2= */ AddLayer(function);// JPRx
+
+ // bool added2= AddLayer(function);// JPRx
+ AddLayer(function); //EED
+
UpdateAll();
return id;//added1 && added2;
}
pGraphicalFunction* pPlotterWindow::getFunction(int index)
{
wxNode* node=functions.Item(index);
+ if(node==NULL){
+ return NULL;
+ }
return (pGraphicalFunction*)node->GetData();
}
/*
*/
int pPlotterWindow::addFunctionToMove(pGraphicalFunction *function)
{
- // bool added1= functionsToMove.Append(function)!=NULL; // JPRx
+ //bool added1= functionsToMove.Append(function)!=NULL; // JPRx
+ functionsToMove.Append(function); // EED
+
int id=functionsToMove.IndexOf(function);
UpdateAll();
return id;