An exception is fixed

This commit is contained in:
Denis Fokin
2014-12-22 22:08:06 +03:00
parent 8e5bf0aa2e
commit 4e026aed26
2 changed files with 1 additions and 6 deletions
@@ -294,7 +294,7 @@ public class SheetController {
}
});
FontMetrics fontMetrics = mySheetMessage.getFontMetrics(regularFont);
FontMetrics fontMetrics = sheetPanel.getFontMetrics(regularFont);
int widestWordWidth = 250;
@@ -259,11 +259,6 @@ public class SheetMessage {
}
});
}
FontMetrics getFontMetrics(final Font f) {
final Component c = (myParent == null) ? WindowManagerEx.getInstanceEx().getMostRecentFocusedWindow() : myParent;
return c.getGraphics().getFontMetrics(f);
}
}