bug fix:scans: backward scan plotting works now

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@77 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d
2012-09-25 15:51:29 +00:00
parent f4bd585ba2
commit cfce337c46
3 changed files with 10 additions and 1 deletions

View File

@ -103,6 +103,8 @@ void qDrawPlot::SetupWidgetWindow(){
alreadyDisplayed = false;
backwardScanPlot = false;
currentFileIndex = 0;
// This is so that it initially stop and plots
running = 1;
for(int i=0;i<MAX_1DPLOTS;i++)
@ -271,6 +273,8 @@ void qDrawPlot::StartStopDaqToggle(bool stop_if_running){
//update file path and file name
filePath = QString(myDet->getFilePath().c_str());
fileName = QString(myDet->getFileName().c_str());
//update index
currentFileIndex = myDet->getFileIndex();
@ -530,6 +534,7 @@ int qDrawPlot::GetData(detectorData *data){
SetPlotTitle(QString(data->fileName).section('/',-1));
//set progress
progress=(int)data->progressIndex;
currentFileIndex = fileIOStatic::getFileIndexFromFileName(string(data->fileName));
#ifdef VERBOSE
cout << "progress:" << progress << endl;
#endif