Kaydet (Commit) edc52015 authored tarafından Matthew J. Francis's avatar Matthew J. Francis Kaydeden (comit) Tor Lillqvist

fdo#82260 Fix OS X font dropdown crash

Without this, font dropdowns intermittently crash after a window
is moved to another screen

Change-Id: I1af5d8224fd164b73c43a9655fbde364f530c979
Reviewed-on: https://gerrit.libreoffice.org/11105Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
Tested-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 48500bdd
...@@ -874,7 +874,8 @@ void SvxFontNameBox_Impl::DataChanged( const DataChangedEvent& rDCEvt ) ...@@ -874,7 +874,8 @@ void SvxFontNameBox_Impl::DataChanged( const DataChangedEvent& rDCEvt )
Size aDropSize( aLogicalSize.Width(), LOGICAL_EDIT_HEIGHT); Size aDropSize( aLogicalSize.Width(), LOGICAL_EDIT_HEIGHT);
SetDropDownSizePixel(LogicToPixel(aDropSize, MAP_APPFONT)); SetDropDownSizePixel(LogicToPixel(aDropSize, MAP_APPFONT));
} }
else if ( rDCEvt.GetType() == DATACHANGED_FONTS ) else if ( ( rDCEvt.GetType() == DATACHANGED_FONTS ) ||
( rDCEvt.GetType() == DATACHANGED_DISPLAY ) )
{ {
// The old font list in shell has likely been destroyed at this point, so we need to get // 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. // the new one before doing anything further.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment