summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/dbgui/sortkeydlg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/sortkeydlg.cxx b/sc/source/ui/dbgui/sortkeydlg.cxx
index 11df6dab7555..944ff4220f09 100644
--- a/sc/source/ui/dbgui/sortkeydlg.cxx
+++ b/sc/source/ui/dbgui/sortkeydlg.cxx
@@ -29,6 +29,7 @@
#include "sortkeydlg.hxx"
#include "sortdlg.hxx"
#include "sortdlg.hrc"
+#include <vcl/layout.hxx>
// =======================================================================
@@ -45,7 +46,7 @@ ScSortKeyItem::ScSortKeyItem(Window* pParent)
long ScSortKeyItem::getItemHeight() const
{
- return m_pFrame->get_preferred_size().Height();
+ return VclContainer::getLayoutRequisition(*m_pFrame).Height();
}
void ScSortKeyItem::DisableField()