diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-05-16 23:26:44 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-06-03 12:17:45 +0200 |
commit | 85613aa81a885488f99ed038f2254ddb0c8a1037 (patch) | |
tree | d6a577b1837ca5e430d31a7e0b979afa3b764321 | |
parent | c4fb67f712ddde0e31bda0f22ef4e4247d63ea9a (diff) |
Fix tdf#117410 - UI: Settings in PDF Options not remembered...
for next export
Change-Id: I6f066c81d96595a4560f5bb9e148001b004b38f0
-rw-r--r-- | vcl/source/filter/FilterConfigItem.cxx | 3 |
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 ); |