Bug 407847 - Import broken
Summary: Import broken
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (show other bugs)
Version: latest
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-22 22:15 UTC by Justin
Modified: 2019-07-18 23:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.7
Sentry Crash Report:


Attachments
Labplot file to import (7.12 KB, application/gzip)
2019-06-13 15:24 UTC, Justin
Details
Resulting error message (empty) (4.29 KB, image/png)
2019-06-13 15:25 UTC, Justin
Details

Note You need to log in before you can comment on or make changes to this bug.
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!