Commit 00a77379 authored by T.J. Corona's avatar T.J. Corona

ReferenceItem: use quiet method to resolve self-links

parent 9c3fa502
......@@ -551,6 +551,7 @@ bool ReferenceItem::has(PersistentObjectPtr entity) const
ReferenceItem::const_iterator ReferenceItem::begin() const
const_iterator it = const_iterator();
ReferenceItem::Cache::const_iterator begin = m_cache->begin();
*(it.m_cacheIterator) = begin;
......@@ -641,8 +642,7 @@ smtk::resource::PersistentObjectPtr ReferenceItem::objectValue(const ReferenceIt
// is held by the same resource as this ReferenceItem. There's no need for
// resource management in this event.
else if (!key.first.isNull() &&
return this->attribute()->links().linkedObject(key);
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