Skip to content

Commit

Permalink
Merge pull request #734 from Sjoerd1993/Do-not-optimise-limits-for-hi…
Browse files Browse the repository at this point in the history
…dden-items

Do not optimise limits for hidden items
  • Loading branch information
sstendahl authored Jan 17, 2024
2 parents 1d6eea2 + cad8181 commit 9a0988f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,9 @@ def optimize_limits(self) -> None:
for direction in ("bottom", "left", "top", "right")
]
for item_ in self:
if not isinstance(item_, item.DataItem):
if not isinstance(item_, item.DataItem) or (
not item_.get_selected()
and figure_settings.get_hide_unselected()):
continue
for index in \
item_.get_xposition() * 2, 1 + item_.get_yposition() * 2:
Expand Down

0 comments on commit 9a0988f

Please sign in to comment.