From 54725f6e5f06b074d1c08d8efbd16518b96882d5 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 3 May 2022 09:49:07 +0100 Subject: 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 --- svx/source/tbxctrls/fontworkgallery.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') 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(nFavorite)); - maCtlFavorites->append(sId, "", maFavoritesHorizontal[nFavorite-1]); + maCtlFavorites->insert(-1, nullptr, &sId, maFavoritesHorizontal[nFavorite - 1], nullptr); } if (maCtlFavorites->n_children()) -- cgit