GP-1718 - Help - Fixed help search highlights not getting cleared when

the find dialog is closed
This commit is contained in:
dragonmacher 2022-01-28 10:27:50 -05:00
parent c3c20d9e0f
commit ac8458c169
2 changed files with 6 additions and 4 deletions

View file

@ -200,12 +200,12 @@ class HelpViewSearcher {
private JEditorPane getHTMLEditorPane(JHelpContentViewer contentViewer) {
//
// Intimate Knowledge - construction of the viewer:
//
//
// -BorderLayout
// -JScrollPane
// -Viewport
// -JHEditorPane extends JEditorPane
//
//
//
Component[] components = contentViewer.getComponents();
JScrollPane scrollPane = (JScrollPane) components[0];
@ -218,12 +218,12 @@ class HelpViewSearcher {
}
private void clearHighlights() {
((TextHelpModel) helpModel).setHighlights(new DefaultHighlight[0]);
((TextHelpModel) helpModel).removeAllHighlights();
}
//==================================================================================================
// Inner Classes
//==================================================================================================
//==================================================================================================
private class FindDialogAction extends AbstractAction {