summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/window/gtksalframe.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index 38ea02318e32..3fb2eb55624f 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -2888,6 +2888,11 @@ void GtkSalFrame::UpdateSettings( AllSettings& rSettings )
if( ! pGraphics )
{
pGraphics = static_cast<GtkSalGraphics*>(GetGraphics());
+ if ( !pGraphics )
+ {
+ SAL_WARN("vcl", "Could not get graphics - unable to update settings");
+ return;
+ }
bFreeGraphics = true;
}