Skip to content

Commit

Permalink
Merge pull request #1396 from ivanimanishi/ustringFix
Browse files Browse the repository at this point in the history
OpenImageIOAlgo : Properly handle empty metadata values
  • Loading branch information
johnhaddon authored Nov 17, 2023
2 parents a2935e3 + 5262454 commit f62076e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
10.5.x.x (relative to 10.5.4.0)
========

Fixes
-----

- OpenImageIOAlgo : Properly handle empty metadata values

10.5.4.0 (relative to 10.5.3.0)
========
Expand Down
2 changes: 1 addition & 1 deletion src/IECoreImage/OpenImageIOAlgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ IECore::DataPtr data( const OIIO::ParamValue &value )
{
if ( type.arraylen == 0 )
{
return new StringData( static_cast<const ustring *>( value.data() )->c_str() );
return new StringData( static_cast<const ustring *>( value.data() )->string() );
}
else
{
Expand Down

0 comments on commit f62076e

Please sign in to comment.