Kaydet (Commit) e735b48e authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Caolán McNamara

Resolves: #i63399# add to clipboard as URL only when...

no fill and no line style, just a simple URL

(cherry picked from commit a91b5943)

Change-Id: Ic8bd02c81663575355a0ca79e4987b5ef0e4a445
üst ebb728c9
...@@ -225,7 +225,16 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj ) ...@@ -225,7 +225,16 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj )
{ {
const SvxURLField* pURL = (SvxURLField*) pData; const SvxURLField* pURL = (SvxURLField*) pData;
mpBookmark = new INetBookmark( pURL->GetURL(), pURL->GetRepresentation() ); // #i63399# This special code identifies TextFrames which have just an URL
// as content and directly add this to the clipboard, probably to avoid adding
// an unnecessary DrawObject to the target where paste may take place. This is
// wanted only for SdrObjects with no fill and no line, else it is necessary to
// use the whole SdrObect. Test here for Line/FillStyle and take shortcut only
// when both are unused
if(!pObj->HasFillStyle() && !pObj->HasLineStyle())
{
mpBookmark = new INetBookmark( pURL->GetURL(), pURL->GetRepresentation() );
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment