[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jun 27 18:23:24 UTC 2020
sc/source/ui/app/inputwin.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit bd02918f77636f54b13b796e205ead77ca853ed9
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jun 27 16:08:39 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Jun 27 20:22:45 2020 +0200
cid#1464970 Unchecked dynamic_cast
Change-Id: I9190065a88defe9165ac79a0339a6a510b0903d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97314
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 5bdf3a4480a9..ebca73d2f9f8 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -196,8 +196,10 @@ ScInputWindow::ScInputWindow( vcl::Window* pParent, const SfxBindings* pBind ) :
InsertItem (SID_INPUT_FUNCTION, Image(StockImage::Yes, RID_BMP_INPUT_FUNCTION), ToolBoxItemBits::NONE, 2);
}
+ const bool bIsLOKMobilePhone = mpViewShell && mpViewShell->isLOKMobilePhone();
+
// sigma and equal buttons
- if (!mpViewShell->isLOKMobilePhone())
+ if (!bIsLOKMobilePhone)
{
InsertItem (SID_INPUT_SUM, Image(StockImage::Yes, RID_BMP_INPUT_SUM), ToolBoxItemBits::DROPDOWNONLY, 3);
InsertItem (SID_INPUT_EQUAL, Image(StockImage::Yes, RID_BMP_INPUT_EQUAL), ToolBoxItemBits::NONE, 4);
@@ -224,7 +226,7 @@ ScInputWindow::ScInputWindow( vcl::Window* pParent, const SfxBindings* pBind ) :
}
// sigma and equal buttons
- if (!mpViewShell->isLOKMobilePhone())
+ if (!bIsLOKMobilePhone)
{
SetItemText (SID_INPUT_SUM, ScResId( SCSTR_QHELP_BTNSUM ) );
SetHelpId (SID_INPUT_SUM, HID_INSWIN_SUMME);
More information about the Libreoffice-commits
mailing list