diff options
Diffstat (limited to 'sd/source/ui/sidebar/CustomAnimationPanel.cxx')
-rw-r--r-- | sd/source/ui/sidebar/CustomAnimationPanel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/sidebar/CustomAnimationPanel.cxx b/sd/source/ui/sidebar/CustomAnimationPanel.cxx index f2b38af7ba1d..95e7f3352f7f 100644 --- a/sd/source/ui/sidebar/CustomAnimationPanel.cxx +++ b/sd/source/ui/sidebar/CustomAnimationPanel.cxx @@ -23,7 +23,6 @@ namespace sd { extern ::Window * createCustomAnimationPanel (::Window* pParent, ViewShellBase& rBase, const cssu::Reference<css::frame::XFrame>& rxFrame); - extern sal_Int32 getCustomAnimationPanelMinimumHeight (::Window* pParent); } namespace sd { namespace sidebar { @@ -66,7 +65,8 @@ CustomAnimationPanel::~CustomAnimationPanel (void) css::ui::LayoutSize CustomAnimationPanel::GetHeightForWidth (const sal_Int32 /*nWidth*/) { - const sal_Int32 nMinimumHeight(getCustomAnimationPanelMinimumHeight(mpWrappedControl.get())); + Window *pControl = mpWrappedControl.get(); + sal_Int32 nMinimumHeight = pControl ? pControl->get_preferred_size().Height() : 0; return css::ui::LayoutSize(nMinimumHeight,-1, nMinimumHeight); } |