Skip to content

Commit

Permalink
Fix dictionary creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lamyj committed Mar 14, 2016
1 parent 981f5e4 commit da6b653
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/javascript/JavascriptVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ ::JavascriptVM()
for(auto it = odil::registry::public_dictionary.begin();
it != odil::registry::public_dictionary.end(); ++it)
{
if(it->first.get_type() != odil::ElementsDictionaryKey::Type::Tag)
{
continue;
}

if (!first)
{
dictionary_as_json << ",";
Expand All @@ -100,7 +105,7 @@ ::JavascriptVM()
dictionary_as_json
<< "\"" << it->second.keyword
<< "\": [\"" << it->second.vr
<< "\",\"" << std::string(it->first) << "\"]";
<< "\",\"" << std::string(it->first.get_tag()) << "\"]";
}

dictionary_as_json << "}";
Expand Down

0 comments on commit da6b653

Please sign in to comment.