diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-10-11 10:57:05 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-10-20 22:48:49 +0200 |
commit | 54b4174268ce3faf1c7e21b1f4933c383d6299f0 (patch) | |
tree | 9a7f63464c6209296e7d58e085472db44723acf4 /sw | |
parent | 81d0a473052a1601a222ccf806ed6032e341c9f9 (diff) |
sw: fix invalid cast in SwEditWin::RequestHelp()
This results in a garbage OUString.
Change-Id: I03b8030a812d7016df5c29f1341749fbdedf1729
Reviewed-on: https://gerrit.libreoffice.org/61652
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit bf0276f0b53c01ac434fef88e97f6b0dd4c41787)
Reviewed-on: https://gerrit.libreoffice.org/61674
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 2c93c692bcea531b1a02b3d200a44f3c4584455a)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/edtwin2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx index e279bc2d2d98..3ee49222b88f 100644 --- a/sw/source/uibase/docvw/edtwin2.cxx +++ b/sw/source/uibase/docvw/edtwin2.cxx @@ -170,7 +170,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) case IsAttrAtPos::InetAttr: { - sText = static_cast<const SfxStringItem*>(aContentAtPos.aFnd.pAttr)->GetValue(); + sText = static_cast<const SwFormatINetFormat*>(aContentAtPos.aFnd.pAttr)->GetValue(); sText = URIHelper::removePassword( sText, INetURLObject::EncodeMechanism::WasEncoded, INetURLObject::DecodeMechanism::Unambiguous); |