[Libreoffice-commits] core.git: svx/source
David Tardon
dtardon at redhat.com
Fri Jul 25 06:43:18 PDT 2014
svx/source/tbxctrls/tbcontrl.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 0497864bd4f603605997938d504ef9598623e713
Author: David Tardon <dtardon at redhat.com>
Date: Fri Jul 25 15:40:27 2014 +0200
rhbz#1121254 reload font list from shell on change
Change-Id: Ief88373c210b3b6f65c1df5b31870aca561095bb
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 816afbe..5728791 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -891,6 +891,12 @@ void SvxFontNameBox_Impl::DataChanged( const DataChangedEvent& rDCEvt )
Size aDropSize( aLogicalSize.Width(), LOGICAL_EDIT_HEIGHT);
SetDropDownSizePixel(LogicToPixel(aDropSize, MAP_APPFONT));
}
+ else if ( rDCEvt.GetType() == DATACHANGED_FONTS )
+ {
+ // The old font list in shell has likely been destroyed at this point, so we need to get
+ // the new one before doing anything further.
+ lcl_GetDocFontList( &pFontList, this );
+ }
FontNameBox::DataChanged( rDCEvt );
}
More information about the Libreoffice-commits
mailing list