Download it now!
Bug 45495 - FILEOPEN .pptx: rotated object shown without rotation
Summary: FILEOPEN .pptx: rotated object shown without rotation
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected)
3.3.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
Whiteboard: target:4.0.0
Depends on:
Reported: 2012-02-01 04:36 UTC by sasha.libreoffice
Modified: 2019-10-22 15:44 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:

presentation with rotated object (756.12 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2012-02-01 04:36 UTC, sasha.libreoffice

Note You need to log in before you can comment on or make changes to this bug.
Description sasha.libreoffice 2012-02-01 04:36:37 UTC
Created attachment 56442 [details]
presentation with rotated object

attachment contains:
1) on first slide slightly rotated picture
2) on second slide screenshot of first slide in MSO 2007 russian

Expected: picture on first slide is slightly rotated
Actually: no rotation

reproduced in LibO 3.3.4. and 3.6.0 master on Fedora 64 bit
Comment 1 bfoman (inactive) 2012-07-16 11:44:04 UTC
Confirmed with:
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit

Picture is not rotated, background in grey colors.
Comment 2 Lennard Wasserthal 2012-09-03 13:45:08 UTC
Custom shapes are also not saved rotated either and when you try to save a rotated custom shape or picture you end up with it notably shifted or sometimes not present, and other objects sometimes very distorted (turned a rhomb into a rectangle!)
Comment 3 Rainer Bielefeld Retired 2012-10-18 05:26:58 UTC
Still [Reproducible] with  "LibreOffice” German UI/ German Locale [Build-ID: f8fce0b] on German WIN7 Home Premium (64bit) 
Already a problem with 3.3.0

We have lots of FILEOPEN pptx bugs (nearby 50), and only this one (and an CRASH) what never worked better and bores nobody (see number of entries in CC) is a MAB? thats not comprehensible, I remove this one from MAB tracking Bug and leave a note at <>

@Lennard Wasserthal:
<> item 4!
Comment 4 Rainer Bielefeld Retired 2012-10-18 05:32:16 UTC
Related bugs seem to show that there might be a more general misunderstanding concerning rotation syntax in .pptx?

Please set Status to ASSIGNED and add yourself to "Assigned To" if you accept this Bug or forward the Bug if it's not your turf
Comment 5 Thorsten Behrens (CIB) 2012-10-26 20:09:39 UTC
Rodo, you were looking into this recently - cycles left to give this a quick go?
Comment 6 Lennard Wasserthal 2012-11-06 21:18:03 UTC
@Rainer Bielefeld

But both is the same bug!

WriteShapeTransformation is called without an rotate argument.
(from oox/source/export/shapes.cxx)
WriteShapeTransformation oox/source/export/drawingml.cxx accepts an rotate parameter and works if it is present, but it is a template so the program doesn't
Yield a warning.

Should I handle this?
I just have to find out where the transform can be read, perhaps from the import routines or the shapes directly.
Perhaps I can do it this weekend or earlier.
Comment 7 Rainer Bielefeld Retired 2012-11-07 05:08:06 UTC
It would be great if you could  take this one. I changed "Assigned To:" so that every body knows that you are working on this issue.
Please assign back to list if you don't find the time or if insuperable obstacles appear.
Comment 8 Lennard Wasserthal 2012-11-11 10:27:51 UTC
Patch generated.

The patch fixes also

bug 34897

bug 56121

so I guess I'll threat them as dupes.

There HAS some work to be done, though, arrows for example are twitched and their custom shape control points run to their limits when touched, up arrows are first-invisi-then-box exported, sheared stuff causes glitches and there were many todos in oox/source/export/shapes.cxx
good, I file that as new bug, unless already happened.
Comment 9 Lennard Wasserthal 2012-11-11 10:33:21 UTC
*** Bug 56121 has been marked as a duplicate of this bug. ***
Comment 10 sasha.libreoffice 2012-11-12 05:16:59 UTC
Thanks for fixing this bug
Comment 11 Not Assigned 2012-11-29 20:19:28 UTC
Lennard committed a patch related to this issue.
It has been pushed to "master":

fdo#45495 pptx Export saves rotation of pictures,shapes,text

The patch should be included in the daily builds available at in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Comment 12 Regina Henschel 2019-10-09 15:46:32 UTC
The picture in the attached document is still not rotated. Tested in Version: (x64)
Build ID: 1ec314fa52f458adc18c4f025c545a4e8b22c159
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded
and in Version: (x64)
Build ID: b2d8093b19642038631dfb8f1ab6745a380a652c
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-09-23_22:42:37
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded

Reason is, that it is no ordinary rotation, but a 3D Effect "rotate around z-axis".
Comment 13 Xisco Faulí 2019-10-17 12:29:39 UTC
Still reproducible in

Build ID: 01d28b0b85f99590c0581e4bbf636bc9281e0571
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 14 Xisco Faulí 2019-10-22 15:41:08 UTC
This is the xml code

            <a:camera prst="orthographicFront">
              <a:rot lat="0" lon="0" rev="3600000"/>
            <a:lightRig rig="twoPt" dir="t">
              <a:rot lat="0" lon="0" rev="7200000"/>