From 2e27d2e3397efc1fcc4478bce286c5ec64c118e9 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 11 Oct 2018 10:57:05 +0200 Subject: 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 (cherry picked from commit bf0276f0b53c01ac434fef88e97f6b0dd4c41787) Reviewed-on: https://gerrit.libreoffice.org/61673 Reviewed-by: Thorsten Behrens Reviewed-by: Miklos Vajna --- sw/source/uibase/docvw/edtwin2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase') diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx index 9e4658eacf4a..af88607cb9e5 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(aContentAtPos.aFnd.pAttr)->GetValue(); + sText = static_cast(aContentAtPos.aFnd.pAttr)->GetValue(); sText = URIHelper::removePassword( sText, INetURLObject::EncodeMechanism::WasEncoded, INetURLObject::DecodeMechanism::Unambiguous); -- cgit v1.2.3