[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - vcl/unx
Michael Stahl
mstahl at redhat.com
Tue Feb 4 04:39:47 PST 2014
vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit dc996e36e97aaafe09c28b63cbefc68454f17d2e
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
(cherry picked from commit ff5ad7e379315faa3f4afa009d23f34c7d231d9a)
Reviewed-on: https://gerrit.libreoffice.org/7835
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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