summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-15 18:02:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-15 18:02:44 +0000
commit66c822719f49973bb4a0bfcbcdaef65a985ac892 (patch)
tree32133acc262808774daf7557ccdf129924623a0f /plugins
parent541c2c38bd6e6d9a6fdbf7e19aed4aa5c005dbd7 (diff)
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp12
1 files changed, 7 insertions, 5 deletions
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) };