diff options
-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; } } |