summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-10-15 10:54:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-10-15 13:27:31 +0100
commit20658ca9f8dd840a593de727e89b84e27bf90245 (patch)
tree59390c3c8e2c020e9e9dec6093ec2b3f0e71e503 /dtrans
parent1cb01c477cf1e84f6e1b2ca1771a9af53d81dc59 (diff)
Resolves: #i123407# Do not insist on CF_DIBV5 for clipboard data
also accept CF_DIB (cherry picked from commit b7d59ee36d0786aba13e6b00d93cdfa0045e5379) Change-Id: Iaafdeab981d6621e6696a642c68e29392af3e200
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/win32/dtobj/DOTransferable.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/dtrans/source/win32/dtobj/DOTransferable.cxx b/dtrans/source/win32/dtobj/DOTransferable.cxx
index 7e35ac24b0f3..83a8461f415a 100644
--- a/dtrans/source/win32/dtobj/DOTransferable.cxx
+++ b/dtrans/source/win32/dtobj/DOTransferable.cxx
@@ -116,6 +116,21 @@ Any SAL_CALL CDOTransferable::getTransferData( const DataFlavor& aFlavor )
Any aAny = makeAny( aUnicodeText );
return aAny;
}
+ else if(CF_DIBV5 == fetc.getClipformat())
+ {
+ // #i123407# CF_DIBV5 has priority; if the try to fetch this failed,
+ // check CF_DIB availability as an alternative
+ fetc.setClipformat(CF_DIB);
+
+ try
+ {
+ clipDataStream = getClipboardData( fetc );
+ }
+ catch( UnsupportedFlavorException& )
+ {
+ throw; // pass through, tried all possibilities
+ }
+ }
else
throw; // pass through exception
}