summaryrefslogtreecommitdiff
path: root/docview/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-04-30 15:00:21 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2013-04-30 15:00:21 +0100
commit800b531ef0d818bc0a81432bf9a13eda0796389c (patch)
tree9aef6fef0fe464c5d77e3738ebc26637d4b0cd9a /docview/src
parentd856075f5f21a76266d47675a76aa4b762fd51aa (diff)
downloadfpGUI-800b531ef0d818bc0a81432bf9a13eda0796389c.tar.xz
docview: Fixes encoding bug introduced in earlier refactoring
When I refactored the encoding conversion code, I accidentally write HelpFile.Encoding, instead of Settings.Encoding. This meant that changing the Encoding combobox in the docview main form had no affect.
Diffstat (limited to 'docview/src')
-rw-r--r--docview/src/frm_main.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/docview/src/frm_main.pas b/docview/src/frm_main.pas
index 141dac27..8d128e3e 100644
--- a/docview/src/frm_main.pas
+++ b/docview/src/frm_main.pas
@@ -2573,7 +2573,7 @@ begin
ImageIndices.Free;
// apply encoding conversion
- lText := ConvertTextToUTF8(HelpFile.Encoding, lText);
+ lText := ConvertTextToUTF8(Settings.Encoding, lText);
{ Load and insert annotations / notes }
if not HelpFile.NotesLoaded then