Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2004-10-18 Pierre-Luc Paour <gallery@paour.com> (1.4.2-b7)
	* More fixes for crop UI.
  • Loading branch information
Pierre-Luc Paour committed Oct 18, 2004
1 parent d9e06f2 commit e80f54f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
2004-10-18 Pierre-Luc Paour <gallery@paour.com> (1.4.2-b7)

* More fixes for crop UI.

2004-10-15 Pierre-Luc Paour <gallery@paour.com> (1.4.2-b6)

* Fixed crop area being cached between different pictures.
Expand Down
11 changes: 11 additions & 0 deletions com/gallery/GalleryRemote/PreviewFrame.java
Expand Up @@ -459,6 +459,7 @@ public void mouseClicked(MouseEvent e) {
}

currentPicture.setCropTo(null);
cacheRect = null;
repaint();
}

Expand All @@ -471,6 +472,10 @@ public void mousePressed(MouseEvent e) {
return;
}

if (cacheRect == null) {
movingEdge = 0;
}

inDrag = true;

switch (movingEdge) {
Expand Down Expand Up @@ -535,6 +540,10 @@ public void mouseDragged(MouseEvent e) {
return;
}

if (cacheRect == null) {
movingEdge = 0;
}

int modifiers = e.getModifiersEx();

Point2D p;
Expand Down Expand Up @@ -621,6 +630,8 @@ public void mouseDragged(MouseEvent e) {

public void mouseMoved(MouseEvent e) {
if (currentPicture == null || currentImage == null || currentPicture.isOnline() || cacheRect == null) {
movingEdge = 0;
setCursor(Cursor.getDefaultCursor());
return;
}

Expand Down
4 changes: 2 additions & 2 deletions defaults.properties
Expand Up @@ -242,6 +242,6 @@ updateUrlBeta=http://gallery.sourceforge.net/gallery_remote_version_check_beta.p
#
# --- Do not edit below this line ---
#
version=1.4.2-b6
releaseDate=2004/10/15
version=1.4.2-b7
releaseDate=2004/10/18
aboutText=Gallery Remote\n \n \nA part of the Gallery Open-Source Project\nhttp://gallery.sourceforge.net\n \n \nMaintained by:\n \nPierre-Luc Paour\n \n \nInitial version by Chris Smith\n \n \nContributors:\n \nTim Miller\nDolan Halbrook\nMarkus Cozowicz\nScott Gartner\nAmedeo Paglione\nChris Schwerdt\nSeth Ladd\n \n \nArtwork by Ross A. Reyman\n \n \nBundled software:\n \nImageMagick\nJava look and feel Graphics Repository icons\njpegtran, Guido Vollbeding's version\nMetadataExtractor

0 comments on commit e80f54f

Please sign in to comment.