Commit 0b1e6e89 authored by Nikita Sirgienko's avatar Nikita Sirgienko
Browse files

Fix bug with converting EpsResult to Jupyter notebook format (.ipynb)

parent 557757a7
......@@ -135,7 +135,7 @@ QJsonValue Cantor::EpsResult::toJupyterJson()
const QImage& image = d->image.isNull() ? Renderer::epsRenderToImage(d->url, 1.0, false) : d->image;
QJsonObject data;
data.insert(JupyterUtils::pngMime, JupyterUtils::packMimeBundle(image, JupyterUtils::pngMime));
data = JupyterUtils::packMimeBundle(image, JupyterUtils::pngMime);
root.insert(QLatin1String("data"), data);
root.insert(QLatin1String("metadata"), jupyterMetadata());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment