Skip to content
Snippets Groups Projects
Commit 5b70fb09 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

treat default error string case for file name

parent 81e173a9
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,7 @@ import javax.swing.JTabbedPane; ...@@ -37,6 +37,7 @@ import javax.swing.JTabbedPane;
import javax.swing.WindowConstants; import javax.swing.WindowConstants;
import fr.soleil.comete.box.AbstractTangoBox; import fr.soleil.comete.box.AbstractTangoBox;
import fr.soleil.comete.box.scalarbox.StringScalarBox;
import fr.soleil.comete.definition.widget.properties.ChartProperties; import fr.soleil.comete.definition.widget.properties.ChartProperties;
import fr.soleil.comete.definition.widget.properties.ImageProperties; import fr.soleil.comete.definition.widget.properties.ImageProperties;
import fr.soleil.comete.definition.widget.properties.PlotProperties; import fr.soleil.comete.definition.widget.properties.PlotProperties;
...@@ -326,7 +327,7 @@ public class CurrentScanResultBean extends AbstractTangoBox ...@@ -326,7 +327,7 @@ public class CurrentScanResultBean extends AbstractTangoBox
@Override @Override
public void setText(String file) { public void setText(String file) {
if (file != null && !file.isEmpty()) { if (file != null && !file.isEmpty() && !StringScalarBox.DEFAULT_ERROR_STRING.equals(file)) {
String fileName = file; String fileName = file;
int index = file.lastIndexOf(TangoDeviceHelper.SLASH); int index = file.lastIndexOf(TangoDeviceHelper.SLASH);
if (index > -1) { if (index > -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment