How to test
* Enable Sidebar (Tools > Options > LibreOffice > Advanced, then restart, View > Sidebar).
* Unfold the 'page' section of the 'property' tab (see screenshot 1)
* Set 'orientation' to Landscape
* Go to the 'Styles and formatting' tab (see screenshot 2)
* Go to 'page styles' (4th icon on the top)
* Apply 'Landscape' page style (double click)
Result: page will become portrait again.
Doing it in the reverse order (first page style, then orientation) result in good behavior.
Tested using Mac OSX 10.8.3 with LibreOffice 4.1.0 beta 1 (Version: 188.8.131.52.beta1
Build ID: 3a2c2d2417101e45fe07cfd8358acf2204a98f3)
Created attachment 79981 [details]
Created attachment 79982 [details]
I can not reproduce with:
Version: 184.108.40.206.beta1 Build ID: 5271b34bec742e190e2fe5a7dadb7334a705b54
I also can not confirm the exact issue you report with today's build of master on Windows, will take a look at a Linux build a bit later to be certain. Possibly an OSX only issue?
Using Version: 220.127.116.11.alpha0+
Build ID: 526fbddf6935b0a3983563af71c4ccea4561ceb
TinderBox: Win-x86@6, Branch:master, Time: 2013-05-30_00:05:37
Please reference this AOO wiki for sidebar component names: http://wiki.openoffice.org/wiki/File:SidebarNames.png as it is going to be very helpful if we adopt a common way of referring to the GUI elements of the Sidebar. I believe the AOO devs adopted Symphony nomenclature. Proper component names are sidebar, tab bar, tab, configuration menu button, title bar, deck, content panel title and content panel.
Each soffice component with Symphony counterpart (writer, impress, calc & draw) presents a different tab bar composition, with impress the most complex.
In screenshot 1 you have used the "Properties" button of the "Tab bar" to open the "Page layout content panel". And then used the "Orientation" tool bar to select landscape from its list.
In screenshot 2 you have used the "Styles and Formatting" radio button of the "Tab bar" to open the "Styles and Formatting content panel", which for Writer is the only content panel present in the "deck". This content panel contains a horizontal tool bar and multiple style buttons (paragraph, character, frame, page & list) each when active exposes a tree list of style selections--you've selected the Page styles button and from its tree list, the apply "Landscape" style action.
To restate this particular issue--a page orientation set "Landscape" from the Properties content panel may be disrupting assertion of the Page styles--specifically ability to toggle between the "Default style" (normally portrait orientation), and the "Landscape" style.
I suspect the problem (or is it by design?) is that when using Properties panel to set a landscape page orientation--that becomes the default page style--and if then applying Landscape page style from Page Styles content panel... it has no action to perform because it is already in landscape style.
So, what may be missing from the GUI is a tree list page style to apply Portrait page layout against a landscape default?
issue happens outside Sidebar see aoo#122416 for additional discussion
Oliver-Rainer Wittmann committed a patch related to this issue.
It has been pushed to "master":
Resolves: fdo#65139# #i122416# SwDoc::GetPageDescFromPool correction
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ 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.