From fb73fdad775dad5b75858933a61d6ae3eb21ac25 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Sat, 3 Mar 2018 23:06:43 +0800 Subject: [PATCH] export: bug fix --- src/utils/vutils.cpp | 2 ++ src/vexporter.cpp | 5 +++++ 2 files changed, 7 insertions(+) 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.