summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-05-16 23:26:44 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-06-03 12:17:45 +0200
commit85613aa81a885488f99ed038f2254ddb0c8a1037 (patch)
treed6a577b1837ca5e430d31a7e0b979afa3b764321
parentc4fb67f712ddde0e31bda0f22ef4e4247d63ea9a (diff)
Fix tdf#117410 - UI: Settings in PDF Options not remembered...
for next export Change-Id: I6f066c81d96595a4560f5bb9e148001b004b38f0
-rw-r--r--vcl/source/filter/FilterConfigItem.cxx3
1 files changed, 2 insertions, 1 deletions
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<nEnd)
{
Reference< XHierarchicalNameAccess > xHierarchicalNameAccess
( xReadAccess, UNO_QUERY );