tdf#90923 sw: invalidate layout when font substitutions are changed
This should cause all text to re-format with the newly substituted fonts. Change-Id: I73f64cc679f818524940a52c2f7e696b02891c43
This commit is contained in:
@@ -156,6 +156,7 @@ void SwEditWin::DataChanged( const DataChangedEvent& rDCEvt )
|
|||||||
pSh->LockPaint();
|
pSh->LockPaint();
|
||||||
bUnlockPaint = true;
|
bUnlockPaint = true;
|
||||||
GetView().GetDocShell()->UpdateFontList(); //e.g. printer change
|
GetView().GetDocShell()->UpdateFontList(); //e.g. printer change
|
||||||
|
pSh->InvalidateLayout(true);
|
||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
@@ -601,6 +601,7 @@ void SwPagePreviewWin::DataChanged( const DataChangedEvent& rDCEvt )
|
|||||||
case DataChangedEventType::FONTS:
|
case DataChangedEventType::FONTS:
|
||||||
case DataChangedEventType::FONTSUBSTITUTION:
|
case DataChangedEventType::FONTSUBSTITUTION:
|
||||||
mrView.GetDocShell()->UpdateFontList(); // Font change
|
mrView.GetDocShell()->UpdateFontList(); // Font change
|
||||||
|
mpViewShell->InvalidateLayout(true);
|
||||||
if ( mpViewShell->GetWin() )
|
if ( mpViewShell->GetWin() )
|
||||||
mpViewShell->GetWin()->Invalidate();
|
mpViewShell->GetWin()->Invalidate();
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user