mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-13 23:25:27 +08:00
fixed a bug in clipboard conversion (was using wrong converter or
no converter when one was available).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user