[sikuli] 168/385: fixed filename creation
Gilles Filippini
pini at moszumanska.debian.org
Sun Jun 29 19:26:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
pini pushed a commit to tag upstream/1.1.0_beta1
in repository sikuli.
commit 7ac386373b79f01cdf093a17e21a3f2e95dd32d4
Author: Raimund Hocke <rmhdevelop at me.com>
Date: Mon Jan 20 19:38:56 2014 +0100
fixed filename creation
---
IDE/src/main/java/org/sikuli/ide/EditorPatternButton.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/IDE/src/main/java/org/sikuli/ide/EditorPatternButton.java b/IDE/src/main/java/org/sikuli/ide/EditorPatternButton.java
index c3ef091..9314e59 100755
--- a/IDE/src/main/java/org/sikuli/ide/EditorPatternButton.java
+++ b/IDE/src/main/java/org/sikuli/ide/EditorPatternButton.java
@@ -200,11 +200,11 @@ class EditorPatternButton extends JButton implements ActionListener, Serializabl
File img = new File(_imgFilename);
String oldBundle = img.getParent();
String newBundle = _pane.getSrcBundle();
- Debug.log(2, "ImageButton.getFilename: " + oldBundle + " " + newBundle);
+ Debug.log(2, "ImageButton.getFilename: old: " + oldBundle + "\nnew: " + newBundle);
if (oldBundle == newBundle) {
return _imgFilename;
}
- setFilename(newBundle + File.separatorChar + img.getName());
+ setFilename(new File(newBundle, img.getName()).getAbsolutePath());
return _imgFilename;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sikuli.git
More information about the pkg-java-commits
mailing list