From f9fa302704bccb8aa448f4124e1c4135a7b5e1a4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 25 Feb 2010 06:35:20 +0000 Subject: Fix for bug #2958043 Text disappears when the "wrap" option is on --- src/Editor.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index f9f02788a..d09187f10 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3733,7 +3733,11 @@ void Editor::AddCharUTF(char *s, unsigned int len, bool treatAsDBCS) { if (wrapState != eWrapNone) { AutoSurface surface(this); if (surface) { - WrapOneLine(surface, pdoc->LineFromPosition(positionInsert)); + if (WrapOneLine(surface, pdoc->LineFromPosition(positionInsert))) { + SetScrollBars(); + SetVerticalScrollPos(); + Redraw(); + } } } } -- cgit v1.2.3