From 85613aa81a885488f99ed038f2254ddb0c8a1037 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Wed, 16 May 2018 23:26:44 +0200 Subject: Fix tdf#117410 - UI: Settings in PDF Options not remembered... for next export Change-Id: I6f066c81d96595a4560f5bb9e148001b004b38f0 --- vcl/source/filter/FilterConfigItem.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx index 170e4b956046..0eedb63b408d 100644 --- a/vcl/source/filter/FilterConfigItem.cxx +++ b/vcl/source/filter/FilterConfigItem.cxx @@ -68,7 +68,8 @@ static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory > const & rXCfgP } if ( xReadAccess.is() ) { - while (bAvailable && nIdx>=0 ) + const sal_Int32 nEnd {rTree.getLength()}; + while (bAvailable && nIdx>=0 && nIdx xHierarchicalNameAccess ( xReadAccess, UNO_QUERY ); -- cgit v1.2.3