summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-08-24 16:25:02 +0400
committerEike Rathke <erack@redhat.com>2012-08-24 14:00:17 +0000
commit500b4069b66aa897d3ec2a3015d8e061680a8d66 (patch)
tree478141b0e757b83927f6c50d047350367668f40f /fpicker
parente093e553185ed8beff83ef784f0ed5de95c2bc8f (diff)
fdo#49441: don't overwrite the first element in the sequence
regression from 399e425fc9b9a89045bb1653769f581ed5fa5028 Change-Id: I2907a03ca731f43630e5f36cf78682de8a364924 (cherry picked from commit cb0aa85747fa6ada9a7dc4b32e5c5bf3d3850f35) Reviewed-on: https://gerrit.libreoffice.org/474 Reviewed-by: Rafael Dominguez <venccsralph@gmail.com> Tested-by: Rafael Dominguez <venccsralph@gmail.com> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/OfficeFilePicker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx
index 565964f90ef2..170509f6e782 100644
--- a/fpicker/source/office/OfficeFilePicker.cxx
+++ b/fpicker/source/office/OfficeFilePicker.cxx
@@ -632,7 +632,7 @@ Sequence< rtl::OUString > SAL_CALL SvtFilePicker::getFiles() throw( RuntimeExcep
for(size_t i = 0; i < aPathList.size(); ++i)
{
aObj.SetURL(aPathList[i]);
- aPath[i] = aObj.getName();
+ aPath[i + 1] = aObj.getName();
}
}