summaryrefslogtreecommitdiff
path: root/include/vcl/keycod.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-01 19:10:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-11-01 17:11:56 +0000
commitc75466ac88a47859227efc635fa1fcd5edd0a277 (patch)
treeb74a3bb7757260e02681fade6e7dd035ea7cb056 /include/vcl/keycod.hxx
parent6d960bd72c81d43ba7ba6bde359aa2fbc07c421a (diff)
second attempt at fixing my asserts
it appears I can't trust the buildbots, they don't seem to be compiling with asserts Change-Id: Ia49f5d3f134cf1a578469ddcbc7c492383aa971d Reviewed-on: https://gerrit.libreoffice.org/12184 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl/keycod.hxx')
-rw-r--r--include/vcl/keycod.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/keycod.hxx b/include/vcl/keycod.hxx
index 8c344b08b0fd..7e7ece3d8d08 100644
--- a/include/vcl/keycod.hxx
+++ b/include/vcl/keycod.hxx
@@ -80,7 +80,7 @@ public:
inline vcl::KeyCode::KeyCode( sal_uInt16 nKey, sal_uInt16 nModifier )
{
assert(nKey <= KEY_CODE);
- assert(nModifier >= 0x1000 && nModifier <= 0xf000);
+ assert(nModifier == 0 || (nModifier >= 0x1000 && nModifier <= 0xf000));
nKeyCodeAndModifiers = nKey | nModifier;
eFunc = KeyFuncType::DONTKNOW;
}