Skip to content

Commit

Permalink
Merge pull request #167 from jim-easterbrook/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
jim-easterbrook committed Apr 12, 2023
2 parents 24f2912 + 1ab398f commit 4d91194
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see
<http://www.gnu.org/licenses/>.

Changes in v2023.4.0:
1/ Add "image regions" tab.
2/ Connect image regions to Flickr / Ipernity "notes".
3/ Add GPS coordinates to location / address data.
4/ Improved XMP metadata handling.
5/ Other minor improvements and bug fixes.

Changes in v2023.2.0:
1/ Add Pixelfed / Mastodon uploader.
2/ GPX importer sets altitude as well as latitude & longitude.
Expand Down
2 changes: 1 addition & 1 deletion src/photini/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Full documentation is at https://photini.readthedocs.io/"""

__version__ = '2023.4.0'
build = '2658 (734002f)'
build = '2660 (f95a287)'
7 changes: 4 additions & 3 deletions src/photini/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def set_style(self, draw_unit):
pen.setColor(QtGui.QColor(0, 0, 0, 120))
pen.setWidthF(draw_unit * 5.5)
self.setPen(pen)
## self.setBrush(QtGui.QColor(0, 0, 0, 40))


class RectangleRegion(QtWidgets.QGraphicsRectItem, RegionMixin):
Expand All @@ -115,13 +114,15 @@ def __init__(self, region, display_widget, draw_unit,
self.setRect(rect)
self.highlight = QtWidgets.QGraphicsRectItem(parent=self)
self.adjust_handles()
if self.aspect_ratio:
self.handle_drag(self.handles[3], self.handles[3].pos())
self.set_style(draw_unit)

@catch_all
def itemChange(self, change, value):
scene = self.scene()
if scene and change == self.GraphicsItemChange.ItemSceneHasChanged:
if self.aspect_ratio:
self.handle_drag(self.handles[3], self.handles[3].pos())
return
if scene and change == self.GraphicsItemChange.ItemPositionChange:
# limit move, in relative coords
rect = self.rect()
Expand Down

0 comments on commit 4d91194

Please sign in to comment.