[Libreoffice-commits] core.git: vcl/unx

Michael Stahl mstahl at redhat.com
Mon Feb 3 15:13:18 PST 2014


 vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit ff5ad7e379315faa3f4afa009d23f34c7d231d9a
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Feb 3 23:58:31 2014 +0100

    fdo#44270: vcl: GTK+ file picker: fix non-grouped filter patterns
    
    lcl_CreateAutoMarkFileDlg calls appendFilter() with "... (*.sdi)" and the
    GTK+ file picker then strips off the (*.sdi) in the string given to GTK+
    and then doesn't compare result properly with its stored filters; only
    filters added with appendFilterGroup() work but not appendFilter() ones.
    
    Change-Id: I0ac9272b5606ff8b81f0c14160fc6972789bb1ea

diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index dc9c889..372b8bf 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -521,7 +521,8 @@ namespace {
             sal_Bool bMatch;
             if( !_rEntry.hasSubFilters() )
                 // a real filter
-                bMatch = ( _rEntry.getTitle() == rTitle );
+                bMatch = (_rEntry.getTitle() == rTitle)
+                      || (shrinkFilterName(_rEntry.getTitle()) == rTitle);
             else
                 // a filter group -> search the sub filters
                 bMatch =


More information about the Libreoffice-commits mailing list