diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-05-03 09:49:07 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-05-03 19:54:12 +0200 |
commit | 54725f6e5f06b074d1c08d8efbd16518b96882d5 (patch) | |
tree | 42cf1acd11889b7ab721d4adcb06a0a9fb5d26c2 /svx | |
parent | 02b1be97df3646d3db9db52295129c787c6a84e3 (diff) |
Don't add empty labels to fontwork's icon view
This allows to center the icon in the respective entry,
not having whitespace in the bottom
Change-Id: Ib148df6911f020f8d4efca4f6a80a65b7f95945f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133720
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx')
-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 34436c5a77b2..cc9c4631361d 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -130,7 +130,7 @@ void FontWorkGalleryDialog::fillFavorites(sal_uInt16 nThemeId) for( size_t nFavorite = 1; nFavorite <= nFavCount; nFavorite++ ) { OUString sId = OUString::number(static_cast<sal_uInt16>(nFavorite)); - maCtlFavorites->append(sId, "", maFavoritesHorizontal[nFavorite-1]); + maCtlFavorites->insert(-1, nullptr, &sId, maFavoritesHorizontal[nFavorite - 1], nullptr); } if (maCtlFavorites->n_children()) |