summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorBernhard Widl <bernhard.widl@cib.de>2017-10-11 18:32:26 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-10-13 16:23:52 +0200
commit21ccc64782f485f4fce7cd645f24dabb4b6eb985 (patch)
treec02496420a5a8bcb8a8ff9ece7b50c828acd684d /sc
parentdbc03a7ea22f0540e04facd7b764251954000847 (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.cxx6
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 )
{