mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
[303735] Adjustment to last fix (patch from Serge Beauchamp)
This commit is contained in:
parent
f7defa47f6
commit
c389d6d748
1 changed files with 3 additions and 0 deletions
|
@ -1229,11 +1229,14 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
||||||
// No Match? Add it.
|
// No Match? Add it.
|
||||||
if (j == types.length) {
|
if (j == types.length) {
|
||||||
IInputType[] newTypes = new IInputType[types.length + 1];
|
IInputType[] newTypes = new IInputType[types.length + 1];
|
||||||
|
boolean[] newTypesWasReplaced = new boolean[types.length + 1];
|
||||||
for (int k = 0; k < types.length; k++) {
|
for (int k = 0; k < types.length; k++) {
|
||||||
newTypes[k] = types[k];
|
newTypes[k] = types[k];
|
||||||
|
newTypesWasReplaced[k] = typesWasReplaced[k];
|
||||||
}
|
}
|
||||||
newTypes[j] = ourType;
|
newTypes[j] = ourType;
|
||||||
types = newTypes;
|
types = newTypes;
|
||||||
|
typesWasReplaced = newTypesWasReplaced;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue