diff --git a/src/utils/vutils.cpp b/src/utils/vutils.cpp index 2278b147..ae3c2f9a 100644 --- a/src/utils/vutils.cpp +++ b/src/utils/vutils.cpp @@ -738,9 +738,11 @@ QString VUtils::generateExportHtmlTemplate(const QString &p_renderBg, bool p_inc "SVG: {\n" "minScaleAdjust: 100,\n" "styles: {\n" +#if defined(Q_OS_WIN) "\".MathJax_SVG\": {\n" "\"font-size\": \"2em !important\"\n" "}\n" +#endif "}\n" "}\n" "});\n" diff --git a/src/vexporter.cpp b/src/vexporter.cpp index b551954d..4cdf46d4 100644 --- a/src/vexporter.cpp +++ b/src/vexporter.cpp @@ -378,6 +378,11 @@ bool VExporter::exportViaWebView(VFile *p_file, m_state = ExportState::Failed; goto exit; } + + if (m_askedToStop) { + m_state = ExportState::Cancelled; + goto exit; + } } // Wait to ensure Web side is really ready.