summaryrefslogtreecommitdiffstats
path: root/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sidebar/tools/ValueSetWithTextControl.cxx')
-rw-r--r--svx/source/sidebar/tools/ValueSetWithTextControl.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
index 91cea51325..b5b1f2be3c 100644
--- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
+++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
@@ -43,15 +43,6 @@ void ValueSetWithTextControl::SetDrawingArea(weld::DrawingArea* pDrawingArea)
SetColCount();
}
-void ValueSetWithTextControl::SetOptimalDrawingAreaHeight()
-{
- const vcl::Font aFont(Application::GetSettings().GetStyleSettings().GetLabelFont());
- const sal_Int32 nRowHeight = aFont.GetFontSize().Height() * 9 / 4; // see UserDraw()
- const Size aSize(GetOutputSizePixel().Width(), nRowHeight * maItems.size());
- GetDrawingArea()->set_size_request(aSize.Width(), aSize.Height());
- SetOutputSizePixel(aSize);
-}
-
void ValueSetWithTextControl::AddItem(
const OUString& rItemText,
const OUString& rItemText2 )