Skip to content
  • Nikita Sirgienko's avatar
    Fix octave backend problem with repetitive addition of function `cantor_print ()` in worksheet · 4bf211c8
    Nikita Sirgienko authored and Alexander Semke's avatar Alexander Semke committed
    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.
    
    Reviewers: #cantor, asemke
    
    Subscribers: #cantor, #kde_edu
    
    Tags: #kde_edu, #cantor
    
    Differential Revision: https://phabricator.kde.org/D11626
    4bf211c8