Skip to content

Commit a44f4be

Browse files
committed
Merge remote-tracking branch 'arduino/master' into ide-1.5.x
Conflicts: app/src/processing/app/Base.java
2 parents 397046a + b78fcf5 commit a44f4be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/processing/app/Base.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,14 @@ public void onBoardOrPortChange() {
13471347
try {
13481348
String headers[] = headerListFromIncludePath(lib.getSrcFolder());
13491349
for (String header : headers) {
1350+
Library old = importToLibraryTable.get(header);
1351+
if (old != null) {
1352+
// If a library was already found with this header, keep
1353+
// it if the library's name matches the header name.
1354+
String name = header.substring(0, header.length() - 2);
1355+
if (old.getFolder().getPath().endsWith(name))
1356+
continue;
1357+
}
13501358
importToLibraryTable.put(header, lib);
13511359
}
13521360
} catch (IOException e) {

0 commit comments

Comments
 (0)