[Libreoffice-commits] core.git: vcl/unx

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


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

New commits:
commit 4a4ed52e57b540167c3ca45e6e762b9e21e874de
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

diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index 7c4ddfb..44d894d 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -2842,7 +2842,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