diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-05-06 11:01:05 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-05-06 11:01:05 +0000 |
commit | 1145d0454c51c796e9995fc0f076cb115caeaa18 (patch) | |
tree | b8e56d8e8771b9db3bd072225b50de8eb0fbdcd5 /sw/source/ui/shells/drformsh.cxx | |
parent | ea9e33aa9754a2718514fc6a2dbd4d2b32e7d248 (diff) |
INTEGRATION: CWS os112 (1.15.202); FILE MERGED
2008/04/08 07:37:27 os 1.15.202.2: RESYNC: (1.15-1.16); FILE MERGED
2008/04/07 11:04:35 os 1.15.202.1: #i69888# Label property not necessarily available
Diffstat (limited to 'sw/source/ui/shells/drformsh.cxx')
-rw-r--r-- | sw/source/ui/shells/drformsh.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sw/source/ui/shells/drformsh.cxx b/sw/source/ui/shells/drformsh.cxx index 35425465ffed..254d01ccb960 100644 --- a/sw/source/ui/shells/drformsh.cxx +++ b/sw/source/ui/shells/drformsh.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: drformsh.cxx,v $ - * $Revision: 1.17 $ + * $Revision: 1.18 $ * * This file is part of OpenOffice.org. * @@ -140,8 +140,12 @@ void SwDrawFormShell::Execute(SfxRequest &rReq) { uno::Any aTmp; // Ja! - aTmp <<= OUString(rHLinkItem.GetName()); - xPropSet->setPropertyValue(C2U("Label"), aTmp ); + ::rtl::OUString sLabel(C2U("Label")); + if( xPropInfoSet->hasPropertyByName(sLabel) ) + { + aTmp <<= OUString(rHLinkItem.GetName()); + xPropSet->setPropertyValue(sLabel, aTmp ); + } SfxMedium* pMedium = GetView().GetDocShell()->GetMedium(); INetURLObject aAbs; |