Kaydet (Commit) 2c202d82 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Eike Rathke

shapes provide their name through the container::XNamed interface, tdf#114932

This is actually a problem introduced by 1c80246e
and not by 5ee141ee as mentioned in the bug report.

Change-Id: I5f4032c13cf5eac3e515ada10b9bfa87598da438
Reviewed-on: https://gerrit.libreoffice.org/47841Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit cfa0b631)
Reviewed-on: https://gerrit.libreoffice.org/47843Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
üst 24b339c8
...@@ -809,9 +809,9 @@ void ScNavigatorDlg::UpdateSelection() ...@@ -809,9 +809,9 @@ void ScNavigatorDlg::UpdateSelection()
uno::Reference< drawing::XShape > xShape; uno::Reference< drawing::XShape > xShape;
if( xIndexAccess->getByIndex(0) >>= xShape ) if( xIndexAccess->getByIndex(0) >>= xShape )
{ {
uno::Reference< beans::XPropertySet > xProps( xShape, uno::UNO_QUERY_THROW ); uno::Reference< container::XNamed > xNamed( xShape, uno::UNO_QUERY_THROW );
OUString sName; OUString sName = xNamed->getName();
if( ( xProps->getPropertyValue("Name") >>= sName ) && !sName.isEmpty() ) if (!sName.isEmpty())
{ {
aLbEntries->SelectEntryByName( ScContentId::DRAWING, sName ); aLbEntries->SelectEntryByName( ScContentId::DRAWING, sName );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment