HTMLv: hotfix for header tags

git-svn-id: svn://kolibrios.org@4192 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2013-11-07 20:41:13 +00:00
parent 1a5017deb9
commit 52bf8acde0

View File

@ -660,13 +660,18 @@ void TWebBrowser::WhatTextStyle(int left1, top1, width1) {
{
if (rez) text_align = ALIGN_CENTER;
if (!rez) text_align = ALIGN_LEFT;
return;
}
if (!chTag("right"))
{
if (rez) text_align = ALIGN_RIGHT;
if (!rez) text_align = ALIGN_LEFT;
return;
}
if (!chTag("h1")) || (!chTag("h2")) || (!chTag("h3")) || (!chTag("h4")) {
TextGoDown(left1, top1, width1);
IF(rez) TextGoDown(left1, top1 + 10, width1);
strcpy(#oldtag, #tag);
if (rez)
{
if (!strcmp(#parametr, "align=")) && (!strcmp(#options,"center")) text_align = ALIGN_CENTER;
@ -678,9 +683,6 @@ void TWebBrowser::WhatTextStyle(int left1, top1, width1) {
text_align = ALIGN_LEFT;
b_text = 0;
}
TextGoDown(left1, top1, width1);
IF(rez) TextGoDown(left1, top1 + 10, width1);
strcpy(#oldtag, #tag);
return;
}
else