summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r--plugins/Scriver/src/msglog.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp
index 891edbcbeb..6b3e777bca 100644
--- a/plugins/Scriver/src/msglog.cpp
+++ b/plugins/Scriver/src/msglog.cpp
@@ -665,10 +665,6 @@ public:
streamData.bStripFormat = FALSE;
streamData.isFirst = bRedraw ? 1 : m_rtf.GetRichTextLength() == 0;
- EDITSTREAM stream = {};
- stream.pfnCallback = Srmm_LogStreamCallback;
- stream.dwCookie = (DWORD_PTR)&streamData;
-
SCROLLINFO scroll;
scroll.cbSize = sizeof(SCROLLINFO);
scroll.fMask = SIF_RANGE | SIF_POS | SIF_PAGE;
@@ -703,8 +699,11 @@ public:
}
// stream in the event(s)
- streamData.lin = lin;
streamData.bRedraw = bRedraw;
+
+ EDITSTREAM stream = {};
+ stream.pfnCallback = Srmm_LogStreamCallback;
+ stream.dwCookie = (DWORD_PTR)&streamData;
m_rtf.SendMsg(EM_STREAMIN, wp, (LPARAM)&stream);
// do smileys