[Kst] extragear/graphics/kst/src/libkstapp
Barth Netterfield
netterfield at astro.utoronto.ca
Sat Apr 7 03:14:26 CEST 2007
SVN commit 651218 by netterfield:
Fix memchecker. Approved by George.
M +1 -4 datawizard.ui.h
--- trunk/extragear/graphics/kst/src/libkstapp/datawizard.ui.h #651217:651218
@@ -548,14 +548,13 @@
}
}
-
// memory estimate for the y vectors
{
QListViewItemIterator it(_vectorsToPlot);
int fftLen = int(pow(2.0, double(_kstFFTOptions->FFTLen->text().toInt() - 1)));
while (it.current()) {
+
QListViewItem *i = it.current();
- if (i->isSelected()) {
QString field = i->text(0);
if (_kstDataRange->ReadToEnd->isChecked() || nValue < 0) {
@@ -575,12 +574,10 @@
if (_radioButtonPlotPSD->isChecked() || _radioButtonPlotDataPSD->isChecked()) {
memoryRequested += fftLen * 6;
}
- }
++it;
}
}
-
ds->unlock();
if (memoryRequested > memoryAvailable) {
KMessageBox::sorry(this, i18n("You requested to read in %1 MB of data but it seems that you only have approximately %2 MB of usable memory available. You cannot load this much data.").arg(memoryRequested/(1024*1024)).arg(memoryAvailable/(1024*1024)));
More information about the Kst
mailing list