Skip to content

Commit

Permalink
Merge pull request #32 from jburel/12145-rnd-settings
Browse files Browse the repository at this point in the history
12145 rnd settings
  • Loading branch information
joshmoore committed May 14, 2014
2 parents 7edacb4 + a9c266b commit 0dbcd2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -913,8 +913,11 @@ void setViewedBy(Map viewedBy)
}
}
}
this.viewedBy = m;
getEditor().getRenderer().loadRndSettings(true, null);
this.viewedBy = m;
Renderer rnd = getEditor().getRenderer();
if (rnd != null) {
rnd.loadRndSettings(true, null);
}
}

/**
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6247,6 +6247,8 @@ def _prepareTB (self, _r=False):
rdid = None
if rdid is None:
if not has_rendering_settings:
if self._conn.canBeAdmin():
ctx.setOmeroUser(self.details.owner.id.val)
try:
tb.resetDefaults(ctx) # E.g. May throw Missing Pyramid Exception
except omero.ConcurrencyException, ce:
Expand Down

0 comments on commit 0dbcd2d

Please sign in to comment.