From 9cb94c0591381cacb9760ef5e71b7bec7c16aaff Mon Sep 17 00:00:00 2001 From: lazarus-bart Date: Sun, 8 Apr 2012 17:42:45 +0000 Subject: [PATCH] Fixed wrong LineNr in call to DoCharSetChanged git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2384 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- applications/lazedit/editorpagecontrol.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/lazedit/editorpagecontrol.pp b/applications/lazedit/editorpagecontrol.pp index 8e188ec90..1f76721d8 100644 --- a/applications/lazedit/editorpagecontrol.pp +++ b/applications/lazedit/editorpagecontrol.pp @@ -466,7 +466,7 @@ begin begin //DebugLn('Changing charset to utf-8'); TextBetweenPoints[Point(CharsetStart,LineNr+1),Point(CharSetEnd,LineNr+1)] := 'utf-8'; - DoCharsetChanged(OldCharSet, 'utf-8', LineNr); + DoCharsetChanged(OldCharSet, 'utf-8', LineNr+1); end; Break; end;