pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1824601 - /pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
Date Sat, 17 Feb 2018 15:39:02 GMT
Author: tilman
Date: Sat Feb 17 15:39:02 2018
New Revision: 1824601

URL: http://svn.apache.org/viewvc?rev=1824601&view=rev
Log:
PDFBOX-4113: filter for file open dialog on Mac should filter files and not directories, by
Aaron Madlon-Kay

Modified:
    pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java

Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java?rev=1824601&r1=1824600&r2=1824601&view=diff
==============================================================================
--- pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java (original)
+++ pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java Sat Feb
17 15:39:02 2018
@@ -750,9 +750,9 @@ public class PDFDebugger extends JFrame
                 openDialog.setFilenameFilter(new FilenameFilter()
                 {
                     @Override
-                    public boolean accept(File file, String s)
+                    public boolean accept(File dir, String name)
                     {
-                        return file.getName().toLowerCase().endsWith(".pdf");
+                        return name.toLowerCase().endsWith(".pdf");
                     }
                 });
                 openDialog.setVisible(true);



Mime
View raw message