diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-08 15:49:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-08 15:51:57 +0100 |
commit | 7b2367f868778739fba382a68a35248904cc9565 (patch) | |
tree | 247773909f31d389354a617f9cb6e3d311c7fe41 | |
parent | 81802cfa7cb04f770e57413dbeb2c852c2431e65 (diff) |
misspell some words, copy and paste slide to gimp
and we don't want to see the mis-spelt underlines
Change-Id: Ib3ae29297a1697e0f7b0caa816504da7edf721d1
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index 044f680c827f..587ead7f68ac 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -518,13 +518,27 @@ bool SdTransferable::GetData( const DataFlavor& rFlavor, const OUString& rDestDo } else if( nFormat == SotClipboardFormatId::GDIMETAFILE ) { - if( mpSdViewIntern ) + if (mpSdViewIntern) + { + const bool bToggleOnlineSpell = mpSdDrawDocumentIntern && mpSdDrawDocumentIntern->GetOnlineSpell(); + if (bToggleOnlineSpell) + mpSdDrawDocumentIntern->SetOnlineSpell(false); bOK = SetGDIMetaFile( mpSdViewIntern->GetMarkedObjMetaFile( true ), rFlavor ); + if (bToggleOnlineSpell) + mpSdDrawDocumentIntern->SetOnlineSpell(true); + } } else if( SotClipboardFormatId::BITMAP == nFormat || SotClipboardFormatId::PNG == nFormat ) { - if( mpSdViewIntern ) + if (mpSdViewIntern) + { + const bool bToggleOnlineSpell = mpSdDrawDocumentIntern && mpSdDrawDocumentIntern->GetOnlineSpell(); + if (bToggleOnlineSpell) + mpSdDrawDocumentIntern->SetOnlineSpell(false); bOK = SetBitmapEx( mpSdViewIntern->GetMarkedObjBitmapEx(true), rFlavor ); + if (bToggleOnlineSpell) + mpSdDrawDocumentIntern->SetOnlineSpell(true); + } } else if( ( nFormat == SotClipboardFormatId::STRING ) && mpBookmark ) { |