1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

duplicate 'add custom catalog' items have been removed

This commit is contained in:
Nikolay Pultsin 2011-03-02 17:43:07 +00:00
parent e60f32b331
commit ef86c59ae5

View file

@ -310,6 +310,7 @@ public class NetworkLibrary {
currentNode = nodeIterator.next(); currentNode = nodeIterator.next();
} }
if (!(currentNode instanceof NetworkCatalogTree)) { if (!(currentNode instanceof NetworkCatalogTree)) {
toRemove.add(currentNode);
currentNode = null; currentNode = null;
++nodeCount; ++nodeCount;
continue; continue;
@ -355,9 +356,7 @@ public class NetworkLibrary {
if (currentNode == null) { if (currentNode == null) {
currentNode = nodeIterator.next(); currentNode = nodeIterator.next();
} }
if (currentNode instanceof NetworkCatalogTree) { toRemove.add(currentNode);
toRemove.add(currentNode);
}
currentNode = null; currentNode = null;
} }