LOK: hyperlink were inserted as button instead of text object

Change-Id: I393e5cb34d90fc6def6c62be9216df1acd9b5f4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96778
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 58cd5e5..c839b79 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -38,6 +38,7 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/scopeguard.hxx>
#include <comphelper/lok.hxx>

#include <editeng/contouritem.hxx>
#include <editeng/editdata.hxx>
@@ -2263,7 +2264,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
                {
                    OutlinerView* pOlView = mpDrawView->GetTextEditOutlinerView();

                    if (pOlView)
                    if (pOlView || comphelper::LibreOfficeKit::isActive())
                    {
                        InsertURLField(pHLItem->GetURL(), pHLItem->GetName(),
                                       pHLItem->GetTargetFrame());