Renderer: fix compilation after 47daa41a29 25/19225/1
Paul Bignier [Thu, 23 Mar 2017 11:56:20 +0000 (12:56 +0100)]
Change-Id: I373cccdf0cf0f2f84f3e67555857e39391e23185

scilab/modules/renderer/src/java/org/scilab/modules/renderer/utils/textRendering/FontManager.java

index b2bd881..25ecdc5 100644 (file)
@@ -239,13 +239,13 @@ public class FontManager {
 
         try {
             loadedFont = Font.createFont(Font.TRUETYPE_FONT, in);
+            in.close();
         } catch (IOException e) {
             loadedFont = DEFAULT_FONT;
         } catch (FontFormatException ffe) {
             loadedFont = DEFAULT_FONT;
         }
-        
-        in.close();
+
         return loadedFont;
     }