Kaydet (Commit) ccb77a73 authored tarafından Michael Stahl's avatar Michael Stahl

fdo#49076: copy numbering to clipboard only if start of para selected

SwTxtNode::CopyText: If the selection does not include the start of the
paragraph, copy an empty string to the clipboard, which suppresses
numbering output in ASCII text format.

Change-Id: Ie467999b4e82e7f5149ffe8bb773aa74ccedcca7
üst d9293274
...@@ -1469,8 +1469,9 @@ void SwTxtNode::CopyText( SwTxtNode *const pDest, ...@@ -1469,8 +1469,9 @@ void SwTxtNode::CopyText( SwTxtNode *const pDest,
if (pDest->GetDoc()->IsClipBoard() && this->GetNum()) if (pDest->GetDoc()->IsClipBoard() && this->GetNum())
{ {
// #i111677# cache expansion of source (for clipboard) // #i111677# cache expansion of source (for clipboard)
pDest->m_pNumStringCache.reset( pDest->m_pNumStringCache.reset( (nTxtStartIdx != 0)
new OUString(this->GetNumString())); ? new OUString // fdo#49076: numbering only if copy from para start
: new OUString(this->GetNumString()));
} }
if( !nLen ) if( !nLen )
......
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