Added #2176 Ignoring letter spacing on text search (only applies to global search, not to search inside text

Fixed #2176 Reset letterspacing on text import
This commit is contained in:
Jindra Petřík
2024-01-06 10:23:34 +01:00
parent f931488477
commit 4a4851fb50
3 changed files with 6 additions and 3 deletions

View File

@@ -2973,7 +2973,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
boolean ignoreCase = searchDialog.ignoreCaseCheckBox.isSelected();
boolean regexp = searchDialog.regexpCheckBox.isSelected();
boolean scriptSearch = searchDialog.searchInASRadioButton.isSelected()
|| searchDialog.searchInPCodeRadioButton.isSelected();
if (scriptSearch) {
@@ -3144,7 +3144,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
for (Tag tag : swf.getTags()) {
if (tag instanceof TextTag) {
TextTag textTag = (TextTag) tag;
if (pat.matcher(textTag.getFormattedText(false).text).find()) {
if (pat.matcher(textTag.getFormattedText(true).text).find()) {
found.add(textTag);
}
}