[Libreoffice-commits] core.git: sw/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 25 13:16:01 UTC 2020
sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 46a5f75799db710c2456f9dc27db201f9a458789
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Jun 25 13:23:49 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jun 25 15:15:28 2020 +0200
-Werror=maybe-uninitialized: may be used uninitialized in this function
Change-Id: Iae4ca4fb760bd0fae8e26e6c77f20159cfb61388
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97110
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
index 10277c7eabe4..805a45e37eee 100644
--- a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
+++ b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
@@ -192,18 +192,18 @@ void WriterInspectorTextPanel::GetPropertyValues(const beans::Property rProperty
rString += (iValue == awt::FontSlant_ITALIC) ? OUStringLiteral("italic")
: OUStringLiteral("normal");
}
- else if ((rAny >>= fValue) || fValue)
+ else if ((rAny >>= fValue) && fValue)
{
if (rString == "CharWeight ")
rString += (fValue > 100) ? OUStringLiteral("bold") : OUStringLiteral("normal");
else
rString += OUString::number((round(fValue * 100)) / 100.00);
}
- else if ((rAny >>= sValue) || sValue)
+ else if ((rAny >>= sValue) && sValue)
{
rString += OUString::number(sValue);
}
- else if ((rAny >>= lValue) || lValue)
+ else if ((rAny >>= lValue) && lValue)
{
if (rString == "CharColor ")
rString += OUString::number(sal_Int16(lValue));
More information about the Libreoffice-commits
mailing list