[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jul 25 11:53:24 UTC 2020
vcl/source/control/edit.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 55f3a4595891a8cc22272225d1c82419f28d4ef9
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jul 25 11:49:14 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Jul 25 13:52:45 2020 +0200
cid#1465512 Wrong operator used
Change-Id: Ieda705abc6d49bfa4c611445f0df92a649b77117
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99429
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index f274eca3f581..0330fd4cf6f9 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -205,7 +205,7 @@ bool Edit::set_property(const OString &rKey, const OUString &rValue)
SetPlaceholderText(rValue);
else if (rKey == "shadow-type")
{
- if (GetStyle() | WB_BORDER)
+ if (GetStyle() & WB_BORDER)
SetBorderStyle(rValue == "none" ? WindowBorderStyle::MONO : WindowBorderStyle::NORMAL);
}
else
More information about the Libreoffice-commits
mailing list