[Libreoffice-commits] core.git: svx/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Tue Nov 10 19:45:44 UTC 2020
svx/source/tbxctrls/fontworkgallery.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5601d910ce5e157e0c740925d908159b7f382317
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Tue Nov 10 19:05:53 2020 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Tue Nov 10 20:45:00 2020 +0100
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 at collabora.com>
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());
More information about the Libreoffice-commits
mailing list