[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - vcl/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 19 10:02:00 UTC 2021


 vcl/source/window/window.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit cff620010dc6501669b0308866f73f5db96bc640
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Jul 16 16:03:49 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Jul 19 12:01:25 2021 +0200

    tdf#142923 Deleting comment in Writer leaves visual artifact behind
    
    Change-Id: Ia2e55886513e81847dd0ac6c697e7cea34e01bdc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119075
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    (cherry picked from commit 3ec78de2322f781a98802acc77cfb3e71a08eb3d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119174

diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 4ec17ae8b18f..88c618dd1254 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2182,7 +2182,7 @@ vcl::Font Window::GetPointFont(vcl::RenderContext const & rRenderContext) const
 
 void Window::Show(bool bVisible, ShowFlags nFlags)
 {
-    if ( isDisposed() || mpWindowImpl->mbVisible == bVisible )
+    if ( !mpWindowImpl || mpWindowImpl->mbVisible == bVisible )
         return;
 
     VclPtr<vcl::Window> xWindow(this);
@@ -2193,7 +2193,7 @@ void Window::Show(bool bVisible, ShowFlags nFlags)
     if ( !bVisible )
     {
         ImplHideAllOverlaps();
-        if( xWindow->isDisposed() )
+        if( !xWindow->mpWindowImpl )
             return;
 
         if ( mpWindowImpl->mpBorderWindow )
@@ -2219,7 +2219,7 @@ void Window::Show(bool bVisible, ShowFlags nFlags)
 
             vcl::Region aInvRegion = mpWindowImpl->maWinClipRegion;
 
-            if( xWindow->isDisposed() )
+            if( !xWindow->mpWindowImpl )
                 return;
 
             bRealVisibilityChanged = mpWindowImpl->mbReallyVisible;
@@ -2355,7 +2355,7 @@ void Window::Show(bool bVisible, ShowFlags nFlags)
                 bool bNoActivate(nFlags & (ShowFlags::NoActivate|ShowFlags::NoFocusChange));
                 mpWindowImpl->mpFrame->Show( true, bNoActivate );
             }
-            if( xWindow->isDisposed() )
+            if( !xWindow->mpWindowImpl )
                 return;
 
             // Query the correct size of the window, if we are waiting for
@@ -2373,13 +2373,13 @@ void Window::Show(bool bVisible, ShowFlags nFlags)
                 mpWindowImpl->mpFrameData->mpBuffer->SetOutputSizePixel(GetOutputSizePixel());
         }
 
-        if( xWindow->isDisposed() )
+        if( !xWindow->mpWindowImpl )
             return;
 
         ImplShowAllOverlaps();
     }
 
-    if( xWindow->isDisposed() )
+    if( !xWindow->mpWindowImpl )
         return;
 
     // the SHOW/HIDE events also serve as indicators to send child creation/destroy events to the access bridge


More information about the Libreoffice-commits mailing list