From 47b22ed3310455d62cdebf6a1e58238de34202ee Mon Sep 17 00:00:00 2001
From: "Kirill Lipatov (Leency)" <lipatov.kiril@gmail.com>
Date: Fri, 6 Oct 2017 17:50:03 +0000
Subject: [PATCH] fix wrong title encoding at opennet.ru

git-svn-id: svn://kolibrios.org@7056 a494cfbc-eb01-0410-851d-a64ba20cac60
---
 programs/cmm/TWB/TWB.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/programs/cmm/TWB/TWB.c b/programs/cmm/TWB/TWB.c
index 8632f278d4..fdcc8a0f5b 100644
--- a/programs/cmm/TWB/TWB.c
+++ b/programs/cmm/TWB/TWB.c
@@ -295,8 +295,10 @@ void TWebBrowser::SetStyle() {
 			debugln("Document has no information about encoding, UTF will be used");
 		}
 		if (opened) {
-			ChangeCharset(charsets[cur_encoding], "CP866", #header);
-			sprintf(#header, "%s - %s", #header, #version);
+			if (!strcmp(#header, #version)) {
+				ChangeCharset(charsets[cur_encoding], "CP866", #header);
+				sprintf(#header, "%s - %s", #header, #version);
+			}
 			DrawTitle(#header);
 		}
 		return;