diff options
-rw-r--r-- | svx/source/mnuctrls/SmartTagCtl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/mnuctrls/SmartTagCtl.cxx b/svx/source/mnuctrls/SmartTagCtl.cxx index f08889f8f7aa..3dbfc6dce242 100644 --- a/svx/source/mnuctrls/SmartTagCtl.cxx +++ b/svx/source/mnuctrls/SmartTagCtl.cxx @@ -161,7 +161,9 @@ IMPL_LINK_TYPED( SvxSmartTagsControl, MenuSelect, Menu *, pMen, bool ) sal_uInt16 nMyId = pMen->GetCurItemId(); - if ( nMyId < MN_ST_INSERT_START) return 0; + if ( nMyId < MN_ST_INSERT_START) + return false; + nMyId -= MN_ST_INSERT_START; // compute smarttag lib index and action index |