From 0c47695fd3ee85b8c24d6969e3061ec23a0cfdc4 Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Sun, 15 Sep 2013 17:54:06 +0200 Subject: Fix fdo#69381 by skipping empty option groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idaf0f0a3f5430a5aea6f77a003e205116a87cc67 Reviewed-on: https://gerrit.libreoffice.org/5949 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- vcl/unx/gtk/gdi/salprn-gtk.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx index 0722f78df641..4a28fcd7d23f 100644 --- a/vcl/unx/gtk/gdi/salprn-gtk.cxx +++ b/vcl/unx/gtk/gdi/salprn-gtk.cxx @@ -483,6 +483,11 @@ GtkPrintDialog::impl_initCustomTab() GtkWidget* pGroup = NULL; bool bGtkInternal = false; + //Fix fdo#69381 + //Next options if this one is empty + if ( aOptProp.getLength() == 0) + continue; + for (int n = 0; n != aOptProp.getLength(); n++) { const beans::PropertyValue& rEntry(aOptProp[ n ]); -- cgit v1.2.1