Skip to content

Commit

Permalink
use self as topStruct if anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
Beechwell committed Feb 12, 2020
1 parent bc77c7a commit 56930ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public boolean isHasChildren() throws IndexUnreachableException, PresentationExc
* @throws io.goobi.viewer.exceptions.IndexUnreachableException if any.
*/
public StructElement getTopStruct() throws PresentationException, IndexUnreachableException {
if(work) {
if(work || anchor) {
return this;
} else {
if(this.topStruct == null) {
Expand Down

0 comments on commit 56930ea

Please sign in to comment.