[Libreoffice-commits] core.git: rsc/source

Andras Timar atimar at suse.com
Wed Mar 27 07:46:31 PDT 2013


 rsc/source/tools/rsctools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4653d73c577d5bf197e7e6c01876f85cf728e279
Author: Andras Timar <atimar at suse.com>
Date:   Wed Mar 27 15:46:38 2013 +0100

    fix extension replacer (rsc)
    
    Change-Id: I0808aeedf87fd181380077f5cfd7b12dc3b33ef3

diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx
index d760634..8131826 100644
--- a/rsc/source/tools/rsctools.cxx
+++ b/rsc/source/tools/rsctools.cxx
@@ -131,7 +131,7 @@ rtl::OString OutputFile(const rtl::OString &rInput, const char * pExt)
 
     if( nSepInd != -1 )
     {
-        return rInput.copy(0, rInput.getLength() - nSepInd).concat(OString(pExt));
+        return rInput.copy(0, nSepInd + 1).concat(OString(pExt));
     }
 
     return rInput.concat(OString(".")).concat(OString(pExt));


More information about the Libreoffice-commits mailing list