summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-02-12 12:11:51 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-02-12 12:11:51 +0000
commit71bb5055e38e390fddb2e0f1aa37f66872e11376 (patch)
tree6156f093864d2db290e71a295208bab92136e3a7 /sfx2/source
parentc57e8e70fdeb6c5081f454e692b931def4f650ab (diff)
INTEGRATION: CWS odfversionfix_SRC680 (1.2.72); FILE MERGED
2008/02/05 13:49:27 mba 1.2.72.1: #i85734#: don't crash when no frame exists
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/newerverwarn.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sfx2/source/dialog/newerverwarn.cxx b/sfx2/source/dialog/newerverwarn.cxx
index 639e3c44de76..9eacc1a98ea1 100644
--- a/sfx2/source/dialog/newerverwarn.cxx
+++ b/sfx2/source/dialog/newerverwarn.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: newerverwarn.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ihi $ $Date: 2007-11-26 18:22:34 $
+ * last change: $Author: vg $ $Date: 2008-02-12 13:11:51 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -107,9 +107,11 @@ IMPL_LINK( NewerVersionWarningDialog, UpdateHdl, PushButton*, EMPTYARG )
uno::UNO_QUERY_THROW );
uno::Reference< frame::XDispatchProvider > xDispatchProvider(
xDesktop->getCurrentFrame(), uno::UNO_QUERY );
+ if ( !xDispatchProvider.is() )
+ xDispatchProvider = uno::Reference < frame::XDispatchProvider > ( xDesktop, uno::UNO_QUERY );
+
uno::Reference< frame::XDispatch > xDispatch =
xDispatchProvider->queryDispatch( aURL, rtl::OUString(), 0 );
-
if ( xDispatch.is() )
xDispatch->dispatch( aURL, uno::Sequence< beans::PropertyValue >() );
}