diff options
author | Bernhard Widl <bernhard.widl@cib.de> | 2017-10-11 18:32:26 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-10-13 16:23:52 +0200 |
commit | 21ccc64782f485f4fce7cd645f24dabb4b6eb985 (patch) | |
tree | c02496420a5a8bcb8a8ff9ece7b50c828acd684d /sc | |
parent | dbc03a7ea22f0540e04facd7b764251954000847 (diff) |
derive size of tab bar in Calc from TabFont (in pixels).
Change-Id: I3a35850cb6a66b06ae6568b54c008669ee2f391a
Reviewed-on: https://gerrit.libreoffice.org/43328
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index 0f227b18ef5f..53a40774869d 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -355,7 +355,11 @@ void ScTabView::DoResize( const Point& rOffset, const Size& rSize, bool bInner ) const StyleSettings& rStyleSettings = pFrameWin->GetSettings().GetStyleSettings(); - sal_Int32 nTabWidth = pFrameWin->GetFont().GetFontHeight() + WIDTH_MARGIN; + + Size aFontSize = rStyleSettings.GetTabFont().GetFontSize(); + MapMode aPtMapMode(MapUnit::MapPoint); + aFontSize = pFrameWin->LogicToPixel(aFontSize, aPtMapMode); + sal_Int32 nTabWidth = aFontSize.Height() + WIDTH_MARGIN; if ( aViewData.GetHSplitMode() != SC_SPLIT_NONE ) { |