diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-01-11 22:42:07 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-01-13 22:19:27 +0100 |
commit | cfa0b631d00f1c17d15646ddcf78093b7f4df03b (patch) | |
tree | 687a9053c86f406865a40a585ae0d695a3088253 /sc/source | |
parent | f8fc4f4f4e0a5ccbdae4f6d39c80a3533e4ce507 (diff) |
shapes provide their name through the container::XNamed interface, tdf#114932
This is actually a problem introduced by 1c80246e5ff8aeb3e05384d86766a56aa878c7be
and not by 5ee141ee2fb77c3cc452ac656235d7e83e15072c as mentioned in the bug report.
Change-Id: I5f4032c13cf5eac3e515ada10b9bfa87598da438
Reviewed-on: https://gerrit.libreoffice.org/47841
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx index a9e650230473..46fc019c6618 100644 --- a/sc/source/ui/navipi/navipi.cxx +++ b/sc/source/ui/navipi/navipi.cxx @@ -809,9 +809,9 @@ void ScNavigatorDlg::UpdateSelection() uno::Reference< drawing::XShape > xShape; if( xIndexAccess->getByIndex(0) >>= xShape ) { - uno::Reference< beans::XPropertySet > xProps( xShape, uno::UNO_QUERY_THROW ); - OUString sName; - if( ( xProps->getPropertyValue("Name") >>= sName ) && !sName.isEmpty() ) + uno::Reference< container::XNamed > xNamed( xShape, uno::UNO_QUERY_THROW ); + OUString sName = xNamed->getName(); + if (!sName.isEmpty()) { aLbEntries->SelectEntryByName( ScContentId::DRAWING, sName ); } |