Skip to content
Snippets Groups Projects
Commit 2ed5422b authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

JAsk auch wenn nJ nicht einheitlich

parent 97e4e91f
No related branches found
No related tags found
No related merge requests found
......@@ -182,18 +182,16 @@ void NOlm::JSelAsk( string quest, string *jSel, CList *jLis )
if ( FSel.size()<=0 )
throw string( "query scan selection: no files to operate on" );
uint nJ = MOM[FSel.V[0]].nScan();
IterateEle iter;
CEle *e;
uint nJmax = 0;
while ( (e=iter()) )
if ( e->nScan()!=nJ )
throw string( "files have different numbers of scans" );
nJmax = max( nJmax, e->nScan() );
if ( nJ==1 )
if ( nJmax==1 )
*jLis = CList("0");
else {
*jSel = wask( quest, *jSel );
*jLis = CList ( *jSel, 0, nJ-1 );
*jLis = CList ( *jSel, 0, nJmax-1 );
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment