Commit 033168d7 authored by Eric Tobias's avatar Eric Tobias

Fixed bug that returned to many IDs when asking for all handle IDs associated...

Fixed bug that returned to many IDs when asking for all handle IDs associated with a widget. It previously returned all
parent f1f1e80c
......@@ -182,13 +182,14 @@ public abstract class TangibleObjectManager {
* @return An {@link ArrayList} containing all associated handle IDs.
*/
public static synchronized ArrayList<Integer> getIdentifier(BaseWidget widget) {
ArrayList<Integer> identifiers = new ArrayList<>();
identifiers.addAll(objectList.keySet());
identifiers.addAll(cursorList.keySet());
identifiers.addAll(blobList.keySet());
return identifiers;
// ArrayList<Integer> identifiers = new ArrayList<>();
//
// identifiers.addAll(objectList.keySet());
// identifiers.addAll(cursorList.keySet());
// identifiers.addAll(blobList.keySet());
//
// return identifiers;
return new ArrayList<>(widget.getPositions().keySet());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment