diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-11-10 19:05:53 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-11-10 20:45:00 +0100 |
commit | 5601d910ce5e157e0c740925d908159b7f382317 (patch) | |
tree | 551413a9489cbdd0629a372d513fe902e82b1112 /svx/source/tbxctrls/fontworkgallery.cxx | |
parent | 7f8b5c092deb0a74aac18f1901e12e58b3a51493 (diff) |
Let's assume that sal_uInt16 is unlikely to be less than zero
Change-Id: I3e93d111bf22e54771ad4f2c7498a49d477dd3d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105533
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/tbxctrls/fontworkgallery.cxx')
-rw-r--r-- | svx/source/tbxctrls/fontworkgallery.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index 75f78f71d35f..a1b28688f13a 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -164,7 +164,7 @@ void FontWorkGalleryDialog::insertSelectedFontwork() { sal_uInt16 nItemId = maCtlFavorites.GetSelectedItemId(); - if( nItemId <= 0 ) + if (nItemId == 0) return; std::unique_ptr<FmFormModel> pModel(new FmFormModel()); |