From 4aab4a879390c272cb95600156b4b14a7a29d6ea Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Mon, 4 Mar 2013 11:51:06 +0100 Subject: This condition is uneeded and cause localize not to work See also: 73b7792f716064db0815ad0f86846093edcd2f78 Change-Id: I9ea5e77cf84ce9ac6b247b97e579373831ab9ab9 --- l10ntools/source/localize.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'l10ntools') diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index b935f9b74c28..af61293bf979 100644 --- a/l10ntools/source/localize.cxx +++ b/l10ntools/source/localize.cxx @@ -461,15 +461,13 @@ void handleDirectory( break; default: if (stat.getFileType() == osl::FileStatus::Directory) { - if (level == 2) { - OString pr(projectRoot); - if (!pr.isEmpty()) { - pr += OString('/'); - } - pr += OString(".."); - handleDirectory(stat.getFileURL(), 2, project, pr, - actualPotDir.concat("/").concat(sFileName)); + OString pr(projectRoot); + if (!pr.isEmpty()) { + pr += OString('/'); } + pr += OString(".."); + handleDirectory(stat.getFileURL(), 2, project, pr, + actualPotDir.concat("/").concat(sFileName)); } else { handleFile(project, projectRoot, stat.getFileURL(), actualPotDir, aPoOutPut); -- cgit