Commit of MK branch rev. 647 (minor change to AbstractStatistics/StringSelection)
This commit is contained in:
parent
33dc1be0bf
commit
59ce3e693b
@ -806,10 +806,10 @@ public abstract class AbstractStatistics implements InterfaceTextListener, Inter
|
||||
Iterator<String> hIter = headers.iterator();
|
||||
Iterator<String> mIter = (metaInfo!=null) ? metaInfo.iterator() : null;
|
||||
if (!lastIsShowFull) while (hIter.hasNext()) {
|
||||
if (mIter!=null) mIter.next();
|
||||
if (mIter!=null && mIter.hasNext()) mIter.next();
|
||||
if (!isRequestedAdditionalField(hIter.next())) {
|
||||
hIter.remove();
|
||||
if (mIter!=null) mIter.remove();
|
||||
if (mIter!=null && mIter.hasNext()) mIter.remove();
|
||||
}
|
||||
}
|
||||
return headers;
|
||||
|
@ -137,7 +137,11 @@ public class StringSelection implements Serializable {
|
||||
* @return
|
||||
*/
|
||||
public boolean isSelected(int i) {
|
||||
return selStates[i];
|
||||
try {
|
||||
return selStates[i];
|
||||
} catch(ArrayIndexOutOfBoundsException e) {
|
||||
throw new ArrayIndexOutOfBoundsException(e.getMessage()+" - inconsistent implementation of InterfaceAdditionalPopulationInformer?");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user