From 097b070e7d95eb0120d829de647b4a088d6f87ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20T=C3=A2che?= Date: Mon, 7 Nov 2022 16:42:30 +0100 Subject: [PATCH] GH-216 Changes some property names --- .../org/icepdf/ri/common/SwingController.java | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/viewer/viewer-awt/src/main/java/org/icepdf/ri/common/SwingController.java b/viewer/viewer-awt/src/main/java/org/icepdf/ri/common/SwingController.java index 5dccbec22..f41c569d1 100644 --- a/viewer/viewer-awt/src/main/java/org/icepdf/ri/common/SwingController.java +++ b/viewer/viewer-awt/src/main/java/org/icepdf/ri/common/SwingController.java @@ -5910,22 +5910,8 @@ private void callOnFilteredAnnotations(final AnnotationFilter filter, final Cons } private static EmptyPagesFilter getEmptyPagesFilter() { - final String minRatioStr = System.getProperty("icepdf.filter.pages.empty.ratio", "0.001"); - double minRatio; - try { - minRatio = Double.parseDouble(minRatioStr); - } catch (final NumberFormatException e) { - logger.warning("Not a valid double value : " + minRatioStr); - minRatio = 0.001; - } - final String whiteFloorStr = System.getProperty("icepdf.filter.pages.empty.white.floor", "240"); - int whiteFloor; - try { - whiteFloor = Integer.parseInt(whiteFloorStr); - } catch (final NumberFormatException e) { - logger.warning("Not a valid int value : " + whiteFloorStr); - whiteFloor = 240; - } + final double minRatio = Defs.doubleProperty("org.icepdf.ri.viewer.filters.empty.pages.ratio", 0.005); + final int whiteFloor = Defs.intProperty("org.icepdf.ri.viewer.filters.empty.white.floor", 240); return new EmptyPagesFilter(minRatio, whiteFloor); } } \ No newline at end of file