From 2bc715163ff4721661152f2dd24252db10b2d3f7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 Jul 2003 08:08:05 +0000 Subject: Patch from Yair Siegel to include the string being inserted in a SC_MOD_BEFOREINSERT notification. --- src/Document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index 98fc6b330..51d52b388 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -394,7 +394,7 @@ bool Document::InsertStyledString(int position, char *s, int insertLength) { DocModification( SC_MOD_BEFOREINSERT | SC_PERFORMED_USER, position / 2, insertLength / 2, - 0, 0)); + 0, s)); int prevLinesTotal = LinesTotal(); bool startSavePoint = cb.IsSavePoint(); const char *text = cb.InsertString(position, s, insertLength); -- cgit v1.2.3