diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-01 14:56:32 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-11-01 14:54:47 +0000 |
commit | 654da83ac27fbf84b3813172724ff4ad52782d60 (patch) | |
tree | 06e6914895c43e84fc3e5d80f9e6ec06f9a581a1 /include/vcl/keycod.hxx | |
parent | a7542d38ddeebd37ddea233fa1e4cf15b2e03c49 (diff) |
fix assert I added to KeyCode
in commit 9044260c35b22aeb6
"add some asserts to validate KeyCode values"
Change-Id: I73dc4c9ee5e4ced699d44ecdfb306a49b853f67e
Reviewed-on: https://gerrit.libreoffice.org/12180
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.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/keycod.hxx b/include/vcl/keycod.hxx index a82a2de796ae..8c344b08b0fd 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 >= KEY_MODTYPE); + assert(nModifier >= 0x1000 && nModifier <= 0xf000); nKeyCodeAndModifiers = nKey | nModifier; eFunc = KeyFuncType::DONTKNOW; } |