Revision 1157 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/Print.java

View differences:

Print.java
106 106

  
107 107
        //double margin = 72.0 / 25.4 * 5.0;
108 108
        try {
109
            if (l.getAtributes().getType() == Attributes.CUSTOM) {
110
                l.showPrintDialog(printerJob);
111
            } else {
112
                l.showPrintDialog(null);
113
            }
109
            PluginServices.backgroundExecution(new Runnable() {
110
                public void run() {
111
                    if (l.getAtributes().getType() == Attributes.CUSTOM) {
112
                        l.showPrintDialog(printerJob);
113
                    } else {
114
                        l.showPrintDialog(null);
115
                    }
116
                }
117
            });
114 118

  
115 119
            //Thread.sleep(10000);
116 120
        } catch (Exception e) {

Also available in: Unified diff