Skip to content

Commit

Permalink
Merge 5512e7f into 8d9e50f
Browse files Browse the repository at this point in the history
  • Loading branch information
kmsquire committed Jul 31, 2014
2 parents 8d9e50f + 5512e7f commit 3c6b55e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ copy(img::AbstractImageDirect, data::StoredArray) = Image(data, copy(img.propert

copy(img::AbstractImageIndexed, data::StoredArray) = ImageCmap(data, copy(img.cmap), copy(img.properties))

copy(img::AbstractImageDirect, _data::AbstractImageDirect) = copy(img, data(_data))

# Provide new data but reuse the properties & cmap
share(img::AbstractArray, data::AbstractArray) = data

Expand Down

0 comments on commit 3c6b55e

Please sign in to comment.