diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-23 13:03:44 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-23 13:03:44 +0300 |
commit | 711fc0c0283af7aa8c7c30ac5fe05105b04250a5 (patch) | |
tree | 6b24338252672a05df0e94f5a67e7fe679be5940 | |
parent | b287b89396d5f9a68e6d35af923bb59420cdae61 (diff) |
fix for custom fonts drawing
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 1 | ||||
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 6a88558640..83b839f0e6 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -220,7 +220,6 @@ int ItemData::calcHeight(int top, int width, POINT *pPos) if (savedHeight == -1) {
m_doc->render(sz.cx);
savedHeight = m_doc->height() + 5;
- Netlib_Logf(0, "Event %d rendered to %d with width %d", dbe.getEvent(), savedHeight, sz.cx);
}
if (pPos)
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 298141b943..a6b18f4ed6 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -87,7 +87,7 @@ static void AppendString(CMStringW &buf, const wchar_t *p) case 0: buf.Append(L"</font>"); continue;
case 1: buf.Append(L"<font class=\"nick\">"); continue;
case 2: case 3: case 4: case 5: case 6:
- buf.AppendFormat(L"<font color=%06X>", color2html(g_plugin.clCustom[colorId-2]));
+ buf.AppendFormat(L"<font color=#%06X>", color2html(g_plugin.clCustom[colorId-2]));
continue;
}
}
|