Skip to content

Commit

Permalink
Include 'r' for reverseIntensity in copy_image_rdef_json
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Sep 13, 2016
1 parent 6bb7066 commit 50a077b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/tools/OmeroWeb/omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1864,9 +1864,10 @@ def getRenderingSettings(image):
start = ch.getWindowStart()
end = ch.getWindowEnd()
color = ch.getLut()
rev = 'r' if ch.isReverseIntensity() else ''
if not color or len(color) == 0:
color = ch.getColor().getHtml()
chs.append("%s%s|%s:%s$%s" % (act, i+1, start, end, color))
chs.append("%s%s|%s:%s%s$%s" % (act, i+1, start, end, rev, color))
rv['c'] = ",".join(chs)
rv['m'] = "g" if image.isGreyscaleRenderingModel() else "c"
rv['z'] = image.getDefaultZ() + 1
Expand Down

0 comments on commit 50a077b

Please sign in to comment.