Bug 407847

Summary: Import broken
Product: [Applications] LabPlot2 Reporter: Justin <jrr45>
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED FIXED    
Severity: normal CC: stefan.gerlach
Priority: NOR    
Version First Reported In: latest   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 2.7
Sentry Crash Report:
Attachments: Labplot file to import
Resulting error message (empty)

Description Justin 2019-05-22 22:15:56 UTC
SUMMARY
Importing from another Labplot 2.5 file fails with a blank error message in version 2.6. Some worksheets will import but missing the graphs.

SOFTWARE/OS VERSIONS
Windows 10

ADDITIONAL INFORMATION
Comment 1 Alexander Semke 2019-05-23 05:17:41 UTC
Are you trying to open a project file or are you doing "project import" where you can specify which objects from another project file to import into the currently openened project?

Can you please attach your project file?
Comment 2 Stefan Gerlach 2019-06-13 11:25:24 UTC
input needed
Comment 3 Justin 2019-06-13 15:24:41 UTC
Created attachment 120841 [details]
Labplot file to import

I am trying to use "project import" to import some of the worksheets from this project file. (Sorry for the delay)
Comment 4 Justin 2019-06-13 15:25:33 UTC
Created attachment 120842 [details]
Resulting error message (empty)
Comment 5 Alexander Semke 2019-06-13 19:51:50 UTC
Can reproduce the problem. Thanks for reporting this. We'll check this.
Comment 6 Alexander Semke 2019-06-13 21:25:28 UTC
Git commit 20bbc8587d1670f94a18e07eb40191c9f014e4ca by Alexander Semke.
Committed on 13/06/2019 at 21:24.
Pushed by asemke into branch 'master'.

Fixed broken project import.
FIXED-IN: 2.7

M  +2    -3    src/backend/core/Folder.cpp
M  +4    -2    src/backend/core/Project.cpp
M  +6    -1    src/backend/datasources/projects/ProjectParser.cpp

https://commits.kde.org/labplot/20bbc8587d1670f94a18e07eb40191c9f014e4ca
Comment 7 Alexander Semke 2019-06-13 21:29:03 UTC
I just did a fix. If it's feasible for to fetch the code from git and to compile it, would be great if you could test and provide more feedback. Thanks again for having reported this problem.
Comment 8 Justin 2019-07-18 23:43:53 UTC
I finally got craft to compile properly, the fix works perfectly. Thank you!