[Libreoffice-commits] core.git: svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Jan 15 08:52:51 UTC 2019
svx/source/tbxctrls/fontworkgallery.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 3fa03f5d1f1543ff873e5191af68ca381d7e1d90
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jan 14 21:12:25 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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 )
More information about the Libreoffice-commits
mailing list