summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-01-14 21:12:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-01-15 09:52:29 +0100
commit3fa03f5d1f1543ff873e5191af68ca381d7e1d90 (patch)
tree43740178e6bbd479b178872081ae544fafd99b01 /svx/source/tbxctrls
parent57d3c927eff495702cd12f2a15ef0763f51977a7 (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r--svx/source/tbxctrls/fontworkgallery.cxx3
1 files changed, 3 insertions, 0 deletions
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 )