Issue 119492

Summary: [From Symphony]The .xlsx sample file is opened with modified state
Product: Calc Reporter: Shan Zhu <shanzhu33>
Component: open-importAssignee: Andre <awf.aoo>
Status: CLOSED FIXED QA Contact:
Severity: Minor    
Priority: P3 CC: awf.aoo, clarence.guo.bj, liushenf, polo8495
Version: 3.4.0   
Target Milestone: 4.0.0   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
.xlsx
none
Add patch awf.aoo: review+

Description Shan Zhu 2012-05-29 06:10:12 UTC
Created attachment 77686 [details]
.xlsx

Build info: AOO3.4_r1327774

Open the .xlsx sample file attached.
Check the state of the Save button on toolbar. It will be enabled.
Close the file without any change, a dialog will popup to ask whether you want to save the change.
Comment 1 Clarence GUO 2012-06-08 03:15:42 UTC
Due to chart was set modified flag to true during loading. PPTX has the same problem. I'm working on this.
Comment 2 Clarence GUO 2012-06-13 06:33:32 UTC
Created attachment 78283 [details]
Add patch
Comment 3 Clarence GUO 2012-06-13 06:34:55 UTC
Comment on attachment 78283 [details]
Add patch

Request Review
Comment 4 Clarence GUO 2012-06-13 06:47:04 UTC
Root Cause:
chart was set modify flag to true during loading.

Solution:
Reset all OLE's modify flag to false at the end of ImportFrom. It's the major filer method of MSOffice2010. As SD has the same problem(SW doesn't support import chart of MSOffice2010 yet), ImportFrom is the joint entry of the three applications, and MS2003 and ODF have no such problem, so it should the correct place to reset the flag.
Comment 5 Andre 2012-06-13 12:39:53 UTC
Reviewing.
Comment 6 Andre 2012-06-13 13:11:24 UTC
Comment on attachment 78283 [details]
Add patch

Reviewed.  Patch looks good.
Thanks for the good work.
Applied on SVN revision 1349824.
Comment 7 Andre 2012-06-15 11:19:08 UTC
Forgot to update the issue status.  Doing that now.
Comment 8 Terry Yang 2012-06-19 01:35:44 UTC
Verify not fixed on trunk rev. 1350167, Reopen this bug.
Platform is Win7 64 bit.
Comment 9 Andre 2012-06-19 12:12:05 UTC
@Terry: Very good that you caught that.  I applied the patch at the wrong place.  Probably because I did that manually (the patch had only partial path information).

Fixed that by moving the patch to the right place (a couple of lines down in the same file.)
SVN revision is 1351665.

I am sorry for the inconvenience.
Comment 10 Terry Yang 2012-06-25 03:16:58 UTC
Verify fixed on AOO 3.4.1 Dev Snapshot Builds Rev.1351712
Suggest close this bug.
Comment 11 Terry Yang 2012-08-20 02:58:30 UTC
Close this bug
Comment 12 Shenfeng Liu 2012-11-07 08:33:26 UTC
set Target Milestone to AOO 3.5.0 for PM purpose.