Kaydet (Commit) 21ccc647 authored tarafından Bernhard Widl's avatar Bernhard Widl Kaydeden (comit) Samuel Mehrbrodt

derive size of tab bar in Calc from TabFont (in pixels).

Change-Id: I3a35850cb6a66b06ae6568b54c008669ee2f391a
Reviewed-on: https://gerrit.libreoffice.org/43328Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst dbc03a7e
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment