D11626: Fix problems with repetitive addition of function `cantor_print ()` in worksheet
Nikita Sirgienko
noreply at phabricator.kde.org
Fri Mar 23 21:11:41 UTC 2018
sirgienko created this revision.
sirgienko added a reviewer: Cantor.
sirgienko added a project: Cantor.
Restricted Application added a subscriber: KDE Edu.
Restricted Application added a project: KDE Edu.
sirgienko requested review of this revision.
REVISION SUMMARY
Octave use special script for plots, that is added for each entry with octave plot commands. Unfortunately, this command is add to entry when expressions in worksheet are saving (maybe should add virtual method `toSaveString()` to `Cantor::Expression`?). So, I have added addition check, if this command already exist in entry, to avoid the multiple addition of this command to entries each time, when worksheet save and load.
TEST PLAN
1. Create worksheet and write some commands to print plots
2. Save and load this worksheet
3. Do 2) again few times
4. Verify,that `cantor_print()` function appears no more than once in each entry.
REPOSITORY
R55 Cantor
REVISION DETAIL
https://phabricator.kde.org/D11626
AFFECTED FILES
src/backends/octave/octaveexpression.cpp
To: sirgienko, #cantor
Cc: #cantor, #kde_edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20180323/d83f1aef/attachment.html>
More information about the kde-edu
mailing list