[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Thu Aug 3 12:31:28 UTC 2017


 sw/source/core/frmedt/fecopy.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit fe3b0468884c3206f527f2afffbcb25482232452
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jul 26 16:11:02 2017 +0100

    Resolves: tdf#33692 drawing objects not visible after creation via ctrl+drag
    
    Change-Id: Iecdff08b36ebee0135c6cac1882702fc4d6dd087
    Reviewed-on: https://gerrit.libreoffice.org/40457
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx
index 743920a0b8f3..b091eeba134b 100644
--- a/sw/source/core/frmedt/fecopy.cxx
+++ b/sw/source/core/frmedt/fecopy.cxx
@@ -397,6 +397,8 @@ bool SwFEShell::CopyDrawSel( SwFEShell* pDestShell, const Point& rSttPt,
                 // Can be 0, as Draws are not allowed in Headers/Footers
                 if ( pFormat )
                 {
+                    // #tdf33692 - drawing object has to be made visible on ctrl+drag copy.
+                    pFormat->CallSwClientNotify(sw::DrawFrameFormatHint(sw::DrawFrameFormatHintId::PREPPASTING));
                     SdrObject* pNew = pFormat->FindSdrObject();
                     if ( RndStdIds::FLY_AS_CHAR != aAnchor.GetAnchorId() )
                     {
@@ -1006,8 +1008,7 @@ bool SwFEShell::Paste( SwDoc* pClpDoc )
                             else
                             {
                                 OSL_ENSURE( RES_DRAWFRMFMT == pNew->Which(), "New format.");
-                                // #i52780# - drawing object has
-                                // to be made visible on paste.
+                                // #i52780# - drawing object has to be made visible on paste.
                                 pNew->CallSwClientNotify(sw::DrawFrameFormatHint(sw::DrawFrameFormatHintId::PREPPASTING));
                                 SdrObject *pObj = pNew->FindSdrObject();
                                 SwDrawView  *pDV = Imp()->GetDrawView();


More information about the Libreoffice-commits mailing list