diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-05-06 15:56:41 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-06 16:18:30 +0200 |
commit | 02cdd8734636ea66259fbbda395d95aa9efd7b03 (patch) | |
tree | 694cd16856e027feb6e9ff6b239fd1f962a81008 /sw | |
parent | 3b12b5f44c1c46a4aae644a577cb015e2940af59 (diff) |
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
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/edtwin3.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/uiview/pview.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/edtwin3.cxx b/sw/source/uibase/docvw/edtwin3.cxx index 006cf7ff109d..07037d57ed3a 100644 --- a/sw/source/uibase/docvw/edtwin3.cxx +++ b/sw/source/uibase/docvw/edtwin3.cxx @@ -156,6 +156,7 @@ void SwEditWin::DataChanged( const DataChangedEvent& rDCEvt ) pSh->LockPaint(); bUnlockPaint = true; GetView().GetDocShell()->UpdateFontList(); //e.g. printer change + pSh->InvalidateLayout(true); break; default: break; } diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx index 3b48f81cc222..103dabff8563 100644 --- a/sw/source/uibase/uiview/pview.cxx +++ b/sw/source/uibase/uiview/pview.cxx @@ -601,6 +601,7 @@ void SwPagePreviewWin::DataChanged( const DataChangedEvent& rDCEvt ) case DataChangedEventType::FONTS: case DataChangedEventType::FONTSUBSTITUTION: mrView.GetDocShell()->UpdateFontList(); // Font change + mpViewShell->InvalidateLayout(true); if ( mpViewShell->GetWin() ) mpViewShell->GetWin()->Invalidate(); break; |