svx/source/tbxctrls/fontworkgallery.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 3fa03f5d1f1543ff873e5191af68ca381d7e1d90 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Jan 14 21:12:25 2019 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Tue Jan 15 09:52:29 2019 +0100 Resolves: tdf#35152 select first fontwork if any are available Change-Id: I29ab070f9664939d1e10d1cccb2a62cfdc0570e7 Reviewed-on: https://gerrit.libreoffice.org/66337 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index 4cc981480872..53ce0bece0cc 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -165,6 +165,9 @@ void FontWorkGalleryDialog::fillFavorites(sal_uInt16 nThemeId) Image aThumbImage( maFavoritesHorizontal[nFavorite-1] ); maCtlFavorites.InsertItem( static_cast<sal_uInt16>(nFavorite), aThumbImage, aStr ); } + + if (maCtlFavorites.GetItemCount()) + maCtlFavorites.SelectItem(1); } void FontWorkGalleryDialog::SetSdrObjectRef( SdrObject** ppSdrObject, SdrModel* pModel ) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
