[Libreoffice-commits] core.git: Branch 'libreoffice-6-3-2' - sc/source
Heiko Tietze (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 9 16:14:13 UTC 2019
sc/source/ui/app/inputwin.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 856565e99d9f3245d1ccb0563eeed6cdfd557afc
Author: Heiko Tietze <heiko.tietze at documentfoundation.org>
AuthorDate: Mon Sep 9 18:13:10 2019 +0200
Commit: Heiko Tietze <heiko.tietze at documentfoundation.org>
CommitDate: Mon Sep 9 18:13:31 2019 +0200
Revert "tdf#127066 Font size of Calc input bar aligned to UI font size"
Mistakenly picked for 6.3.2, it should have been 6.3.
This reverts commit b613ca105b080bb275d6f687b6b443b10b27c284.
Change-Id: I17f061ed9871a264a1c6ed32178ab61d094876db
Reviewed-on: https://gerrit.libreoffice.org/78783
Reviewed-by: Heiko Tietze <heiko.tietze at documentfoundation.org>
Tested-by: Heiko Tietze <heiko.tietze at documentfoundation.org>
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 216a5bd6477e..e206a3506669 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -74,6 +74,7 @@ namespace com::sun::star::accessibility { class XAccessible; }
const long THESIZE = 1000000; // Should be more than enough!
const long INPUTLINE_INSET_MARGIN = 2; // Space between border and interior widgets of input line
+const long MIN_FONT_SIZE = 16; // Minimum font size of input line in pixels
const long LEFT_OFFSET = 5; // Left offset of input line
const long BUTTON_OFFSET = 2; // Space between input line and button to expand/collapse
const long MULTILINE_BUTTON_WIDTH = 20; // Width of the button which opens multiline dropdown
@@ -1433,6 +1434,8 @@ ScTextWnd::ScTextWnd(ScTextWndGroup* pParent, ScTabViewShell* pViewSh)
vcl::Font aAppFont = GetFont();
aTextFont = aAppFont;
Size aFontSize = aAppFont.GetFontSize();
+ if (aFontSize.Height() < MIN_FONT_SIZE)
+ aFontSize.setHeight(MIN_FONT_SIZE);
aTextFont.SetFontSize(PixelToLogic(aFontSize, MapMode(MapUnit::MapTwip)));
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
More information about the Libreoffice-commits
mailing list