[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - vcl/unx

Caolán McNamara caolanm at redhat.com
Tue Sep 3 05:45:04 PDT 2013


 vcl/unx/gtk/window/gtksalframe.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ce7aeaa358dc0000dbcaf43c55670345fad8ee86
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Sep 3 12:24:34 2013 +0100

    Resolves: rhbz#993963 NULL m_pWindow on firefox deleted plugin
    
    Change-Id: Idb12b12e4313668bf3390a97551c688ee0dcde67
    (cherry picked from commit 4a4ed52e57b540167c3ca45e6e762b9e21e874de)
    Reviewed-on: https://gerrit.libreoffice.org/5773
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index 0f53e93..fef8407 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -2698,7 +2698,7 @@ void GtkSalFrame::SetParent( SalFrame* pNewParent )
 
 void GtkSalFrame::createNewWindow( XLIB_Window aNewParent, bool bXEmbed, SalX11Screen nXScreen )
 {
-    bool bWasVisible = IS_WIDGET_MAPPED(m_pWindow);
+    bool bWasVisible = m_pWindow ? IS_WIDGET_MAPPED(m_pWindow) : false;
     if( bWasVisible )
         Show( sal_False );
 


More information about the Libreoffice-commits mailing list