diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-05-16 23:26:44 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2018-06-12 05:36:11 +0200 |
commit | 43df64affb71e9cd17cfaf936d142dad95b280f7 (patch) | |
tree | 771d88ef3e593a019695cdb155ce37acc6ec54d7 /vcl | |
parent | 386ab959c4218c4036004d64dc9526b400b6ec63 (diff) |
Fix tdf#117410 - UI: Settings in PDF Options not remembered...
for next export
Change-Id: I6f066c81d96595a4560f5bb9e148001b004b38f0
(cherry picked from commit 85613aa81a885488f99ed038f2254ddb0c8a1037)
Reviewed-on: https://gerrit.libreoffice.org/55647
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'vcl')
-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 ); |