Kaydet (Commit) 32bf352c authored tarafından Ilhan Yesil's avatar Ilhan Yesil Kaydeden (comit) Katarina Behrens

tdf#113848 Sidebar: Get user-defined sizes while changing orientation

If the orientation of the page is changed, the user
defined page sizes are now accessed directly to swap the sizes
correctly.

Change-Id: I91d256d35dcd910a8c3151a3f9e669413c9a57db
Reviewed-on: https://gerrit.libreoffice.org/59577
Tested-by: Jenkins
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 897d64a5
...@@ -216,9 +216,14 @@ void PageFormatPanel::NotifyItemUpdate( ...@@ -216,9 +216,14 @@ void PageFormatPanel::NotifyItemUpdate(
IMPL_LINK_NOARG(PageFormatPanel, PaperFormatModifyHdl, ListBox&, void) IMPL_LINK_NOARG(PageFormatPanel, PaperFormatModifyHdl, ListBox&, void)
{ {
Paper ePaper = mpPaperSizeBox->GetSelection(); Paper ePaper = mpPaperSizeBox->GetSelection();
Size aSize(SvxPaperInfo::GetPaperSize(ePaper, meUnit)); Size aSize;
if(mpPaperOrientation->GetSelectedEntryPos() == 1) if(ePaper!=PAPER_USER)
aSize = SvxPaperInfo::GetPaperSize(ePaper, meUnit);
else
aSize = Size(GetCoreValue( *mpPaperWidth, meUnit ), GetCoreValue( *mpPaperHeight, meUnit));
if(mpPaperOrientation->GetSelectedEntryPos() == 1 || ePaper==PAPER_USER)
Swap(aSize); Swap(aSize);
mpPageItem->SetLandscape(mpPaperOrientation->GetSelectedEntryPos() == 1); mpPageItem->SetLandscape(mpPaperOrientation->GetSelectedEntryPos() == 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment