diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-07 18:46:09 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-07 18:46:09 +0000 |
commit | 3b3266f2d7621992cbb48ad72f98afece7cb98d1 (patch) | |
tree | 5b45405284424a74d880fcaac2f3a5943cb2b1b4 /plugins/Scriver/src/msglog.cpp | |
parent | 9191bad28f26140907caac7b598ab9de4a312535 (diff) |
Scriver:
- Minor fixes!
git-svn-id: http://svn.miranda-ng.org/main/trunk@12659 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/msglog.cpp')
-rw-r--r-- | plugins/Scriver/src/msglog.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp index c5d48279bb..2afc1f3577 100644 --- a/plugins/Scriver/src/msglog.cpp +++ b/plugins/Scriver/src/msglog.cpp @@ -567,18 +567,8 @@ static char* CreateRTFFromEvent(SrmmWindowData *dat, EventData *evt, GlobalMessa if (!streamData->isFirst && isGroupBreak && (gdat->flags & SMF_DRAWLINES))
AppendToBuffer(buffer, bufferEnd, bufferAlloced, "\\sl-1\\slmult0\\highlight%d\\cf%d\\fs1 \\par\\sl0", fontOptionsListSize + 4, fontOptionsListSize + 4);
- if (streamData->isFirst) {
- if (evt->dwFlags & IEEDF_RTL)
- AppendToBuffer(buffer, bufferEnd, bufferAlloced, "\\rtlpar");
- else
- AppendToBuffer(buffer, bufferEnd, bufferAlloced, "\\ltrpar");
- }
- else {
- if (evt->dwFlags & IEEDF_RTL)
- AppendToBuffer(buffer, bufferEnd, bufferAlloced, "\\rtlpar");
- else
- AppendToBuffer(buffer, bufferEnd, bufferAlloced, "\\ltrpar");
- }
+ AppendToBuffer(buffer, bufferEnd, bufferAlloced, (evt->dwFlags & IEEDF_RTL) ? "\\rtlpar" : "\\ltrpar");
+
if (evt->eventType == EVENTTYPE_MESSAGE)
highlight = fontOptionsListSize + 2 + ((evt->dwFlags & IEEDF_SENT) ? 1 : 0);
else
|