fix paste of text with accents in win32

This commit is contained in:
Eduardo Bart
2012-01-19 16:50:56 -02:00
parent 9b8043cf31
commit 490eae7814
2 changed files with 14 additions and 7 deletions

View File

@@ -25,6 +25,7 @@
#include <framework/application.h>
#include <framework/thirdparty/apngloader.h>
#include <framework/core/resourcemanager.h>
#include <framework/util/utf8.h>
WIN32Window::WIN32Window()
{
@@ -665,7 +666,7 @@ std::string WIN32Window::getClipboardText()
if(hglb) {
LPTSTR lptstr = (LPTSTR)GlobalLock(hglb);
if(lptstr) {
text = lptstr;
text = Fw::utf8StringToLatin1((uchar*)lptstr);
GlobalUnlock(hglb);
}
}