summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-18 11:32:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-18 15:13:52 +0100
commite31de5e002a9a0301e3f16eb105697169e67438f (patch)
tree43455f7d71f301dd5ffa39ec251784c1329f5c22 /svtools/source
parent06e2005ed83567452783003e3113ad6a92190c2d (diff)
detect wrong UniString ctor
there's no way j was intended to be used as a rtl_TextEncoding here. From context it's clearly meant to create a UniString from a subset of the input ByteString Change-Id: Ic0a0773f90686d73ec4eb8b8e03a454585758578
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/filter/sgvtext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/sgvtext.cxx b/svtools/source/filter/sgvtext.cxx
index b87ec912279f..0f0ae91ac56f 100644
--- a/svtools/source/filter/sgvtext.cxx
+++ b/svtools/source/filter/sgvtext.cxx
@@ -1178,7 +1178,7 @@ void SgfFontOne::ReadOne( const rtl::OString& rID, rtl::OString& Dsc )
i--;
j++;
}
- SVFName=String(Dsc,i+1,j); // SV-Fontname rausholen
+ SVFName = rtl::OStringToOUString(Dsc.copy(i+1,j), RTL_TEXTENCODING_IBM_437); // SV-Fontname rausholen
Dsc = rtl::OStringBuffer(Dsc).remove(i,j).makeStringAndClear();
IFID = (sal_uInt32)rID.toInt32();