summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/errcode.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/errcode.hxx b/include/vcl/errcode.hxx
index 2563c12ab957..fb9018466c18 100644
--- a/include/vcl/errcode.hxx
+++ b/include/vcl/errcode.hxx
@@ -88,7 +88,7 @@ public:
}
ErrCode MakeWarning() const {
- return ErrCode(m_value & ERRCODE_WARNING_MASK);
+ return ErrCode(m_value | ERRCODE_WARNING_MASK);
}
bool IsError() {