sd/source/ui/view/drviews5.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
New commits: commit 41130a39ad68310a0136605cbced1f191396c456 Author: Hubert Figuière <h...@collabora.com> AuthorDate: Mon May 20 11:15:35 2024 -0400 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Mon May 20 18:36:02 2024 +0200 cool#9019: draw/impress: disable the Grid for now So that the grid isn't shown in the thumbnail. This will need to be reverted later for cool#7406 Change-Id: I01fbc7ebc9e33a27fb866b7ea6dbaaac68ae8f9b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167872 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx index 8583ecc182c7..fa744fe49bcd 100644 --- a/sd/source/ui/view/drviews5.cxx +++ b/sd/source/ui/view/drviews5.cxx @@ -315,7 +315,15 @@ void DrawViewShell::WriteFrameViewData() mpFrameView->SetGridCoarse( mpDrawView->GetGridCoarse() ); mpFrameView->SetGridFine( mpDrawView->GetGridFine() ); mpFrameView->SetSnapGridWidth(mpDrawView->GetSnapGridWidthX(), mpDrawView->GetSnapGridWidthY()); - mpFrameView->SetGridVisible( mpDrawView->IsGridVisible() ); + + // In LOK, Grid isn't implemented, and it appears in the slide thumbnails + // Remove this when Grid is implemented and/or thumbnails are fixed to no longer + // show the grid. + if (comphelper::LibreOfficeKit::isActive()) + mpFrameView->SetGridVisible( false ); + else + mpFrameView->SetGridVisible( mpDrawView->IsGridVisible() ); + mpFrameView->SetGridFront( mpDrawView->IsGridFront() ); mpFrameView->SetSnapAngle( mpDrawView->GetSnapAngle() ); mpFrameView->SetGridSnap( mpDrawView->IsGridSnap() );