diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-11 17:52:50 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-11 17:52:50 +0200 |
commit | 6bb4c48812224237c29acf31264cc05e2938f242 (patch) | |
tree | a2cf33b0b3ff6c84b4f40d02701a2fe5cb0a6660 /cui | |
parent | 37bdf1659ddb11d8706289511623cc7c8b0d264b (diff) |
Determine accurate position for already added JREs
Change-Id: Ieef6aaeccd3368fa1cf79b3eab510b6b6c24427e
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optjava.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 20fd7a9e0f5c..bef9f2543ec3 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -586,9 +586,9 @@ void SvxJavaOptionsPage::AddFolder( const OUString& _rFolder ) if ( jfw_areEqualJavaInfo( pCmpInfo, pInfo ) ) { bFound = true; - nPos = i; break; } + ++nPos; } if ( !bFound ) @@ -602,6 +602,7 @@ void SvxJavaOptionsPage::AddFolder( const OUString& _rFolder ) bFound = true; break; } + ++nPos; } } |