Skip to content

Commit

Permalink
Temporary and suboptimal fix for #331
Browse files Browse the repository at this point in the history
  • Loading branch information
quicklizard99 committed Sep 20, 2016
2 parents c31d280 + 79649ba commit f1bb163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Version 0.1.34
- #349 Linux instructions
- #347 Explicitly reference python2 in scripts
- #342 Conda environment files
- #331 Box resize doing crazy things - emergency fix: restrict max zoom level
- #333 Ugly error message when opening or saving a file
- #330 libdmtx URL incorrect
- #328 Menu commands to show cookie cutter and metadata template files
Expand Down
4 changes: 3 additions & 1 deletion inselect/gui/views/boxes/boxes_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class BoxesView(QtGui.QGraphicsView):
"""Zoomable image with bounding boxes
"""

MAXIMUM_ZOOM = 3 # User can't zoom in more than 1:3
# self.absolute_zoom limited to be <= MAXIMUM_ZOOM
# 1.8 was chosen through experimentation to fix #331
MAXIMUM_ZOOM = 1.8

viewport_changed = Signal(QRectF)

Expand Down

0 comments on commit f1bb163

Please sign in to comment.