1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Do not replace textbox in Find/Replace dialog if no text is selected

See #2070
This commit is contained in:
Fulvio Ieva 2014-07-22 22:06:39 +02:00 committed by Cristian Maglie
parent 13321e3c1b
commit 6efbecd3cc

View File

@ -1236,6 +1236,7 @@ public class Editor extends JFrame implements RunnerListener {
if (find == null) {
find = new FindReplace(Editor.this);
}
if (getSelectedText()!= null) find.setFindText( getSelectedText() );
//new FindReplace(Editor.this).show();
find.setVisible(true);
//find.setVisible(true);