export: bug fix

This commit is contained in:
Le Tan 2018-03-03 23:06:43 +08:00
parent 8e06c24fc1
commit fb73fdad77
2 changed files with 7 additions and 0 deletions

View File

@ -738,9 +738,11 @@ QString VUtils::generateExportHtmlTemplate(const QString &p_renderBg, bool p_inc
"SVG: {\n" "SVG: {\n"
"minScaleAdjust: 100,\n" "minScaleAdjust: 100,\n"
"styles: {\n" "styles: {\n"
#if defined(Q_OS_WIN)
"\".MathJax_SVG\": {\n" "\".MathJax_SVG\": {\n"
"\"font-size\": \"2em !important\"\n" "\"font-size\": \"2em !important\"\n"
"}\n" "}\n"
#endif
"}\n" "}\n"
"}\n" "}\n"
"});\n" "});\n"

View File

@ -378,6 +378,11 @@ bool VExporter::exportViaWebView(VFile *p_file,
m_state = ExportState::Failed; m_state = ExportState::Failed;
goto exit; goto exit;
} }
if (m_askedToStop) {
m_state = ExportState::Cancelled;
goto exit;
}
} }
// Wait to ensure Web side is really ready. // Wait to ensure Web side is really ready.