Revision 8254 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/FThemeManagerWindow.java

View differences:

FThemeManagerWindow.java
57 57
import javax.swing.JButton;
58 58
import javax.swing.JDialog;
59 59
import javax.swing.JFileChooser;
60
import javax.swing.JOptionPane;
60 61
import javax.swing.JPanel;
61 62
import javax.swing.JTabbedPane;
62 63

  
......
285 286
                        if (aux2 instanceof AlphanumericData)
286 287
                        {
287 288
                            DataSource rs = ((AlphanumericData) aux2).getRecordset();
289
                            if (cl.getValues().length==0) {
290
                            	JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),"no_es_posible_aplicar_leyenda_vacia");
291
                            	return;
292
                            }
288 293
                            int idField = rs.getFieldIndexByName(cl.getFieldName());
289 294
                            if (idField != -1)
290 295
                            {

Also available in: Unified diff