Created attachment 175966 [details] original Origin file This is with the nightly build 19-11-2024: - open the attached Origin file - in the plot move the legend just a millimeter (that it disappears is bug 496478) - now just close LabPlot result: you are asked to save the project UNTITLED, see the screenshot attached Click Yes result: you don't get a new LabPlot file, but the Origin file is overwritten. Attached is the result -> the file is empty This is a major bug because you loose your data if you haven't made a backup of your Origin file.
Created attachment 175967 [details] screenshot of the dialog that pops up on closing LabPlot
Created attachment 175968 [details] the result - an empty Origin file
When i press "Save" when ask while closing LabPlot, i get a new file dialog to select the LML file to save to. The original OPJ file can not be selected for overwriting. Did i miss something? I'm curious how you could select an OPJ file for saving.
(In reply to Stefan Gerlach from comment #3) > I'm curious how you could select an OPJ file for saving. I did not select it. here again my recipe: 1. double-click on the OPJ file (see the attached screenshot showing that the OPJ file was last modified on Nov 20) 2. go to the plot 3. move the legend a bit 4. click on LabPlot's main window to close it 5. in the appearing save dialog click "Save" (see the attached screencast that shows step 2. to 5. as result you get an empty OPJ file, see the attached screenshot that shows that the file was now modified.
Created attachment 176073 [details] screencast showing the recipe to reproduce
Created attachment 176074 [details] screenshot showinghe OPJ file when it is loaded
Created attachment 176075 [details] screenshot showing that the OPJ file was modified
Git commit bb7c42d7bb3b47d131a5ac5cfe83ed422577da6c by Stefan Gerlach. Committed on 26/11/2024 at 16:26. Pushed by sgerlach into branch 'master'. don't overwrite OPJ files when saving M +6 -3 src/frontend/MainWin.cpp https://invent.kde.org/education/labplot/-/commit/bb7c42d7bb3b47d131a5ac5cfe83ed422577da6c