sw/source/uibase/docvw/edtwin2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2e27d2e3397efc1fcc4478bce286c5ec64c118e9
Author:     Michael Stahl <[email protected]>
AuthorDate: Thu Oct 11 10:57:05 2018 +0200
Commit:     Miklos Vajna <[email protected]>
CommitDate: Mon Oct 15 09:40:21 2018 +0200

    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 <[email protected]>
    (cherry picked from commit bf0276f0b53c01ac434fef88e97f6b0dd4c41787)
    Reviewed-on: https://gerrit.libreoffice.org/61673
    Reviewed-by: Thorsten Behrens <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

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<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);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to