tdf#38101 remove highlight after using format painter

Change-Id: I631fd1357c7b066eaad98f5b2f0950f59330330e
Reviewed-on: https://gerrit.libreoffice.org/64904
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 26613e4..201d2b2 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -4730,6 +4730,9 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
            //if the clipboard is empty after paste remove the ApplyTemplate
            if(!pFormatClipboard->HasContent())
                SetApplyTemplate(SwApplyTemplate());

            //tdf#38101 remove temporary highlighting
            m_pUserMarker.reset();
        }
        else if( m_pApplyTempl->nColor )
        {