Small efficiency fix - move command out of loop.
Small efficiency fix - move command out of loop.

Change-Id: I790c3a8363f611ca10c6d816613848ec6f39c515
Reviewed-on: https://gerrit.libreoffice.org/7465
Reviewed-by: Noel Grandin <43cf663cd6d200b6fda42cd74c2a9550f05ea5d0@gmail.com>
Tested-by: Noel Grandin <43cf663cd6d200b6fda42cd74c2a9550f05ea5d0@gmail.com>

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core