diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index 4a98f37dd594..2fd72a79596f 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -410,9 +410,17 @@ void SvxPageDescPage::Reset( const SfxItemSet* rSet ) aPaperSize.Width() > aPaperSize.Height() ) bLandscape = true; + // tdf#130548 disable callbacks on the other of a pair of the radiogroup + // when toggling its partner + m_xLandscapeBtn->connect_clicked(Link()); + m_xPortraitBtn->connect_clicked(Link()); + m_xLandscapeBtn->set_active(bLandscape); m_xPortraitBtn->set_active(!bLandscape); + m_xLandscapeBtn->connect_clicked(LINK(this, SvxPageDescPage, SwapOrientation_Impl)); + m_xPortraitBtn->connect_clicked(LINK(this, SvxPageDescPage, SwapOrientation_Impl)); + m_aBspWin.SetSize( Size( ConvertLong_Impl( aPaperSize.Width(), eUnit ), ConvertLong_Impl( aPaperSize.Height(), eUnit ) ) );