fixed the zooming in plot tab. if x andy axis zoom set, it didnt take it for next measurement

This commit is contained in:
Dhanya Maliakal 2016-05-11 17:21:27 +02:00
parent 14c78dc500
commit 328139434d

View File

@ -805,6 +805,11 @@ void qTabPlot::EnableScanBox(){
boxScan->setChecked(false);
boxScan->setEnabled(false);
/**Newly added*/
// To remind the updateplot in qdrawplot to set range after updating plot
if(!isOriginallyOneD)
myPlot->SetXYRange(true);
//2d scans read every frame, not compulsory, but for historgrams
if((!isOriginallyOneD) && (mode0 || mode1)){
//read every frame