Skip to content

Commit

Permalink
Update Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/Ga…
Browse files Browse the repository at this point in the history
…lleryPanel.java

Co-authored-by: Arved Solth <[email protected]>
  • Loading branch information
markusweigelt and solth authored Jan 24, 2024
1 parent b93abbb commit da54202
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ private void defaultSelect(GalleryMediaContent currentSelection, GalleryStripe p
dataEditor.getSelectedMedia().clear();
LogicalDivision logicalDivision = parentStripe.getStructure();
PhysicalDivision physicalDivision = currentSelection.getView().getPhysicalDivision();
if (physicalDivision.hasMediaPartial()) {
if (physicalDivision.hasMediaPartial() && !physicalDivision.getLogicalDivisions().isEmpty()) {
logicalDivision = physicalDivision.getLogicalDivisions().get(0);
}
dataEditor.getSelectedMedia().add(new ImmutablePair<>(physicalDivision, logicalDivision));
Expand Down

0 comments on commit da54202

Please sign in to comment.