Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Cantor
Commits
611c50ef
Commit
611c50ef
authored
May 11, 2020
by
Nikita Sirgienko
Browse files
[Julia] Fix bug with missing plots in the saved worksheet
parent
bb62b071
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/julia/juliaexpression.cpp
View file @
611c50ef
...
...
@@ -78,12 +78,9 @@ void JuliaExpression::finalize(const QString& output, const QString& error, bool
setResult
(
new
Cantor
::
TextResult
(
output
));
setStatus
(
Cantor
::
Expression
::
Error
);
}
else
{
if
(
!
m_plot_filename
.
isEmpty
()
&&
QFileInfo
(
m_plot_filename
).
exists
())
{
if
(
!
m_plot_filename
.
isEmpty
()
&&
QFileInfo
(
m_plot_filename
).
exists
())
{
// If we have plot in result, show it
setResult
(
new
Cantor
::
ImageResult
(
QUrl
::
fromLocalFile
(
m_plot_filename
)));
QDir
().
remove
(
m_plot_filename
);
setResult
(
new
Cantor
::
ImageResult
(
QUrl
::
fromLocalFile
(
m_plot_filename
)));
}
else
{
if
(
!
output
.
isEmpty
())
setResult
(
new
Cantor
::
TextResult
(
output
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment