From 7d7b7f85ca76c032933c094c131c90fedea1e0a9 Mon Sep 17 00:00:00 2001 From: crs Date: Tue, 23 Jul 2002 18:59:44 +0000 Subject: [PATCH] fixed a bug in clipboard conversion (was using wrong converter or no converter when one was available). --- platform/CMSWindowsClipboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/CMSWindowsClipboard.cpp b/platform/CMSWindowsClipboard.cpp index 7cefd466..57fe856b 100644 --- a/platform/CMSWindowsClipboard.cpp +++ b/platform/CMSWindowsClipboard.cpp @@ -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;