[Libreoffice-commits] core.git: include/svx svx/source
Katarina Behrens
Katarina.Behrens at cib.de
Fri Aug 12 12:19:33 UTC 2016
include/svx/pagenumberlistbox.hxx | 2 ++
svx/source/dialog/pagenumberlistbox.cxx | 5 +++++
2 files changed, 7 insertions(+)
New commits:
commit c89b8ab187f23020873af00f2c20cc9407e5a755
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Wed Aug 10 14:07:03 2016 +0200
Tweak numbering listbox optimal size
Change-Id: I7dedd5bc405da04a14bc7d74475c85a90e989e9c
Reviewed-on: https://gerrit.libreoffice.org/28021
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/include/svx/pagenumberlistbox.hxx b/include/svx/pagenumberlistbox.hxx
index 872a3f2..72424e0 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 46c13d4..0101b34 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: */
More information about the Libreoffice-commits
mailing list