mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug #214194 : Adding a preprocessor symbol erases previously defined ones
This commit is contained in:
parent
324a584c99
commit
5b1f6b5408
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2008 Intel Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -319,9 +319,12 @@ public class SettingsSet {
|
|||
EntryNameKey key = new EntryNameKey(entry);
|
||||
Object[] o = (Object[])map.get(key);
|
||||
|
||||
|
||||
if(o != null && valueMatches(entry, o[1])){
|
||||
mapCopy.remove(key);
|
||||
levelInteger = (Integer)o[0];
|
||||
if (! entry.isBuiltIn()) // allow overwrite existing entry,
|
||||
levelInteger = null; // even with the same value
|
||||
} else {
|
||||
levelInteger = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue