fixed a bug in clipboard conversion (was using wrong converter or
no converter when one was available).
This commit is contained in:
parent
7129efc9ab
commit
7d7b7f85ca
|
@ -108,7 +108,7 @@ CMSWindowsClipboard::get(EFormat format) const
|
|||
// find the converter for the first clipboard format we can handle
|
||||
IMSWindowsClipboardConverter* converter = NULL;
|
||||
UINT win32Format = EnumClipboardFormats(0);
|
||||
while (win32Format != 0) {
|
||||
while (converter == NULL && win32Format != 0) {
|
||||
for (ConverterList::const_iterator index = m_converters.begin();
|
||||
index != m_converters.end(); ++index) {
|
||||
converter = *index;
|
||||
|
|
Loading…
Reference in New Issue