This commit is contained in:
2019-07-02 13:50:20 +02:00
parent fc2cc7e00c
commit 975076043f
6 changed files with 16 additions and 17 deletions

View File

@ -111,8 +111,8 @@ void qDrawPlot::SetupWidgetWindow() {
fileSaveName = "Image";
}
SetupStatistics();
SetupPlots();
SetupStatistics();
SetDataCallBack(true);
myDet->registerAcquisitionFinishedCallback(&(GetAcquisitionFinishedCallBack), this);
myDet->registerProgressCallback(&(GetProgressCallBack), this);
@ -219,7 +219,7 @@ void qDrawPlot::SetupPlots() {
plot2d = new SlsQt2DPlotLayout(boxPlot);
// default display data
if (data2d)
delete[] data2d;
delete [] data2d;
data2d = new double[nPixelsY * nPixelsX];
for (unsigned int px = 0; px < nPixelsX; ++px)
for (unsigned int py = 0; py < nPixelsY; ++py)