summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/shutdownicon.cxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2002-08-27 07:50:19 +0000
committerPeter Burow <pb@openoffice.org>2002-08-27 07:50:19 +0000
commitec24c0868366ac60570ef35002ada064a0d3f8c3 (patch)
treea43d775736b87121982abf1406cfd9742571f70a /sfx2/source/appl/shutdownicon.cxx
parent49522090ef14644b0bbb9376695916032115eaaf (diff)
fix: #102643# use FileDlgHelper to get the current filter name
Diffstat (limited to 'sfx2/source/appl/shutdownicon.cxx')
-rw-r--r--sfx2/source/appl/shutdownicon.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index 8a70079fa09b..666d11409148 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: shutdownicon.cxx,v $
*
- * $Revision: 1.31 $
+ * $Revision: 1.32 $
*
- * last change: $Author: mav $ $Date: 2002-07-17 14:39:07 $
+ * last change: $Author: pb $ $Date: 2002-08-27 08:50:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -291,9 +291,9 @@ void ShutdownIcon::FileOpen()
aArgs[2].Name = OUString::createFromAscii( "UpdateDocMode" );
aArgs[2].Value <<= nUpdateDoc;
- OUString aFilterName;
- if ( xFilterManager.is() )
- aFilterName = xFilterManager->getCurrentFilter();
+ // pb: #102643# use the filedlghelper to get the current filter name,
+ // because it removes the extensions before you get the filter name.
+ OUString aFilterName( dlg.GetCurrentFilter() );
if ( xPickerControls.is() )
{