Skip to content

Commit

Permalink
fixed: imagefile missing: do not switch to text search, if valid imag…
Browse files Browse the repository at this point in the history
…efilename
  • Loading branch information
RaiMan committed Jul 11, 2018
1 parent e5f3570 commit 6d2f011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion API/src/main/java/org/sikuli/script/Image.java
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,10 @@ private static Image createImageValidate(Image img, boolean verbose) {
}
if (!img.isValid()) {
if (Settings.OcrTextSearch) {
img.setIsText(true);
if (Settings.isValidImageFilename(img.getName())) {
img.setIsText(false);
} else {
img.setIsText(true);
}
} else {
if (verbose) {
Expand Down

0 comments on commit 6d2f011

Please sign in to comment.