Skip to content

Commit

Permalink
Fix isssue where Province was not pasted
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed May 13, 2021
1 parent 79752f3 commit 65f079e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public static void main(String[] args) {
String passwordToEncrypt = in.nextLine();
System.out.println("Please enter the password for the encryption");
String encryptPassword = in.nextLine();
in.close();
AES256TextEncryptor textEncryptor = new AES256TextEncryptor();
textEncryptor.setPassword(encryptPassword);
System.out.println(textEncryptor.encrypt(passwordToEncrypt));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,11 @@ public void setLocationData(String verbatimLoc, String specificLoc, String count
((JTextField) field).setText(value);
}
} else if (field instanceof JComboBox) {
if (((JComboBox<?>) field).getSelectedItem().toString().trim().equals("") || settings.getProperty(ImageCaptureProperties.KEY_EXCEL_OVERWRITE).equals("true")) {
String content = "";
if (((JComboBox<?>) field).getSelectedItem() != null) {
content = ((JComboBox<?>) field).getSelectedItem().toString();
}
if (content.trim().equals("") || settings.getProperty(ImageCaptureProperties.KEY_EXCEL_OVERWRITE).equals("true")) {
((JComboBox<?>) field).setSelectedItem(value);
}
}
Expand Down

0 comments on commit 65f079e

Please sign in to comment.