Revision 110 trunk/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/FLayoutFunctions.java

View differences:

FLayoutFunctions.java
290 290
        double pixels_fview_vp_h = 1.0 * frame_vp_img_height;
291 291
        return pixels_fview_vp_h / pixels_fview_screen_h;
292 292
    }
293
    
294

  
295
    public static String getLastMessage(Throwable ex) {
296
        
297
        if (ex == null) {
298
            return "[null]";
299
        }
300
        
301
        Throwable p = ex;
302
        while (p.getCause() != null && p.getCause() != p) {
303
            p = p.getCause();
304
        }
305
        return p.getMessage();
306
    }
293 307
}

Also available in: Unified diff