From 66c822719f49973bb4a0bfcbcdaef65a985ac892 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Jul 2013 18:02:44 +0000 Subject: fix for chinese in tabSRMM, when IeView/H++ is present & Quote button is pressed git-svn-id: http://svn.miranda-ng.org/main/trunk@5370 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdialog.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 34e1d0f78b..9eaa6cec47 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -3099,16 +3099,18 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (szQuoted) free(szQuoted); break; - } else { + } + else { hDBEvent = db_event_last(dat->hContact); goto quote_from_last; } } - if (dat->hDbEventLast == NULL) - break; - else - hDBEvent = dat->hDbEventLast; + hDBEvent = dat->hDbEventLast; + quote_from_last: + if (hDBEvent == NULL) + break; + SendDlgItemMessage(hwndDlg, IDC_LOG, EM_EXGETSEL, 0, (LPARAM)&sel); if (sel.cpMin == sel.cpMax) { DBEVENTINFO dbei = { sizeof(dbei) }; -- cgit v1.2.3