mouse: fix; webview support bold text in docx

git-svn-id: svn://kolibrios.org@7797 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2020-04-15 19:22:26 +00:00
parent 869f0667e0
commit f07f30b675
3 changed files with 4 additions and 2 deletions

View File

@ -346,10 +346,11 @@ void TWebBrowser::SetStyle() {
return; return;
} }
if (tag.is("br")) { NewLine(); return; } if (tag.is("br")) { NewLine(); return; }
if (tag.is("b")) || (tag.is("strong")) || (tag.is("big")) { if (tag.is("b")) || (tag.is("strong")) || (tag.is("big")) || (tag.is("w:b")) {
style.b = tag.opened; style.b = tag.opened;
return; return;
} }
if (tag.is("w:r")) && (!tag.opened) { style.b = false; return; }
if (tag.is("a")) { if (tag.is("a")) {
if (tag.opened) if (tag.opened)
{ {

View File

@ -1,4 +1,4 @@
char version[]="WebView 2.46b"; char version[]="WebView 2.46d";
#ifdef LANG_RUS #ifdef LANG_RUS
char page_not_found[] = FROM "html\\page_not_found_ru.htm""\0"; char page_not_found[] = FROM "html\\page_not_found_ru.htm""\0";

View File

@ -97,6 +97,7 @@ int MoveMouseToHandleSeparators(int _mouse_y)
return item_i * ITEM_H + menu1.y; return item_i * ITEM_H + menu1.y;
} }
} }
return _mouse_y;
} }
void main() void main()