summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svx/pagenumberlistbox.hxx2
-rw-r--r--svx/source/dialog/pagenumberlistbox.cxx5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/pagenumberlistbox.hxx b/include/svx/pagenumberlistbox.hxx
index 872a3f252545..72424e07aa72 100644
--- a/include/svx/pagenumberlistbox.hxx
+++ b/include/svx/pagenumberlistbox.hxx
@@ -30,6 +30,8 @@ public:
void SetSelection( sal_uInt16 );
sal_uInt16 GetSelection() const;
+
+ Size GetOptimalSize() const override;
};
#endif
diff --git a/svx/source/dialog/pagenumberlistbox.cxx b/svx/source/dialog/pagenumberlistbox.cxx
index 46c13d4fa281..0101b34217c5 100644
--- a/svx/source/dialog/pagenumberlistbox.cxx
+++ b/svx/source/dialog/pagenumberlistbox.cxx
@@ -66,4 +66,9 @@ sal_uInt16 PageNumberListBox::GetSelection() const
return nData;
}
+Size PageNumberListBox::GetOptimalSize() const
+{
+ return Size(150, ListBox::GetOptimalSize().Height());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */