Bug 105603

Summary: LibreOffice writes an invalid attribute "sub-view-size" in ODF 1.2 strict from pptx file
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: ImpressAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: dennisroczek, serval2412
Priority: medium Keywords: filter:odp
Version: 5.4.0.0.alpha0+   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108198    
Attachments: Bézier curve as custom shape, created with PowerPoint 2010

Description Regina Henschel 2017-01-29 23:17:12 UTC
Created attachment 130757 [details]
Bézier curve as custom shape, created with PowerPoint 2010

Open the attached pptx-file. Set LibreOffice to save to strict ODF 1.2. Save the file as *.odp. Unpack the file and examine the element <draw:enhanced-geometry> in content.xml.
It has an attribute "sub-view-size". Such attribute does not exist in ODF 1.2.

If you save to 'ODF 1.2 extended', then the namespace drawooo is used.
Comment 1 Julien Nabet 2017-01-31 21:22:37 UTC
Regina: I think it's the code pointer:
http://opengrok.libreoffice.org/xref/core/xmloff/source/draw/shapeexport.cxx#4650

Perhaps this can kind of instruction may help:
if( rExport.getDefaultVersion() > SvtSaveOptions::ODFVER_012 )
?
Comment 2 QA Administrators 2018-05-29 02:36:53 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2018-11-06 13:41:45 UTC
The error still exists in Version: 6.2.0.0.alpha1+ (x64)
Build ID: f825e6d4082c0d0beb1c95b881f6a2ee9bfc9161
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-05_00:20:26
Locale: de-DE (en_US); Calc: CL
Comment 4 Regina Henschel 2018-12-28 21:39:05 UTC
Fixed with fix for bug 122335 with commit https://git.libreoffice.org/core/+/1141fc3247bf8cf901af3f9c0194cbb2621ff707%5E%21

I no longer see the invalid attribute sub-view-size in Version: 6.3.0.0.alpha0+
Build ID: f23b7a8a73114d65d1aa38e5a648e622a56f6ee6
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded