summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-25 11:49:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-25 13:52:45 +0200
commit55f3a4595891a8cc22272225d1c82419f28d4ef9 (patch)
tree88dffa80e67833e8da284c4a834fed8bef2a2984 /vcl/source/control/edit.cxx
parent745b779a8769c19d2a13682970265e35ba1f3329 (diff)
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@redhat.com>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx2
1 files changed, 1 insertions, 1 deletions
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