summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-08 15:49:08 +0100
committerAndras Timar <andras.timar@collabora.com>2015-05-19 12:40:37 +0200
commita658823a3fe0c18c369013a799510dcf1062bd91 (patch)
treee8de27736082a170f43e3c5b7dda17522a162dcc /sd/source
parent9b9ce755a7665c5ef06b9d167ec834afd847a5a9 (diff)
misspell some words, copy and paste slide to gimp
and we don't want to see the mis-spelt underlines Change-Id: Ib3ae29297a1697e0f7b0caa816504da7edf721d1 Reviewed-on: https://gerrit.libreoffice.org/15679 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/app/sdxfer.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx
index dda4f74a5fe0..4ac1fac38ba0 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 == FORMAT_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( FORMAT_BITMAP == nFormat || SOT_FORMATSTR_ID_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 == FORMAT_STRING ) && mpBookmark )
{