diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-05-03 09:49:07 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-06-05 07:51:32 +0200 |
commit | 273eb41f28eded48ff27561ae28882658b5099ad (patch) | |
tree | 440f48a7e08fc1519919688265ab62634481006e /svx/source/tbxctrls | |
parent | d90f701221207977e4a0417caedc841b6adca2e3 (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135406
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'svx/source/tbxctrls')
-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 de42c5f639c4..3cc8e5ac381a 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -131,7 +131,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()) |