diff options
author | Maxime de Roucy <mderoucy@linagora.com> | 2012-03-14 18:26:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-14 11:30:16 +0100 |
commit | 1574c76ec20d1da479ed7e9c85a6cefacc132dfe (patch) | |
tree | 4940854285748381a2806b4231d06691afa5d583 | |
parent | 538c3d597de2cfe9e3ef108d71f310f1d7ca51b6 (diff) |
Format paintbrush default behaviour
Don't copy paragraph formats by default
-rw-r--r-- | sw/source/ui/docvw/edtwin.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx index 4fd5a68a6077..09e96336b065 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -4338,15 +4338,18 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) SwWrtShell& rWrtShell = rView.GetWrtShell(); SfxStyleSheetBasePool* pPool=0; bool bNoCharacterFormats = false; - bool bNoParagraphFormats = false; + bool bNoParagraphFormats = true; { SwDocShell* pDocSh = rView.GetDocShell(); if(pDocSh) pPool = pDocSh->GetStyleSheetPool(); if( (rMEvt.GetModifier()&KEY_MOD1) && (rMEvt.GetModifier()&KEY_SHIFT) ) + { bNoCharacterFormats = true; + bNoParagraphFormats = false; + } else if( rMEvt.GetModifier() & KEY_MOD1 ) - bNoParagraphFormats = true; + bNoParagraphFormats = false; } //execute paste pFormatClipboard->Paste( rWrtShell, pPool, bNoCharacterFormats, bNoParagraphFormats ); |