Skip to content

Commit 9f2ded3

Browse files
JorisGoosenboutinb
authored andcommitted
Fixes audit sampling filtereddataentry getting stuck
fixes jasp-stats/jasp-issues#2503
1 parent 349ea62 commit 9f2ded3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Desktop/data/computedcolumnsmodel.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ void ComputedColumnsModel::checkForDependentAnalyses(const std::string & columnN
271271
stringset usedCols = analysis->usedVariables(),
272272
createdCols = analysis->createdVariables();
273273

274-
//Dont create an infinite loop please
275-
if(usedCols.count(columnName) && !createdCols.count(columnName))
274+
//Dont create an infinite loop please, but do this only for non-computed columns created by an analysis (aka distributions, because otherwise it breaks things like planning from audit)
275+
if(usedCols.count(columnName) && (!createdCols.count(columnName) || !DataSetPackage::pkg()->isColumnAnalysisNotComputed(columnName)))
276276
{
277277
bool allColsValidated = true;
278278

0 commit comments

Comments
 (0)