summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-13 20:45:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-14 09:33:09 +0000
commit563ba069b529c5a65db4f5e306fc21e5c59431e6 (patch)
treecc03920680d12eff6eb3410208e98e1e6d5e9010 /editeng
parentd113e328ef045e8da2b3e6f6e9d82970e882d097 (diff)
longparas: nPartLen always is USHRT_MAX/STRING_LEN to take full string
Change-Id: I55bb0baa8e83948c470ade2fc6fabccb69dea91d
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/svxfont.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx
index b873c596d457..b86160f6e05d 100644
--- a/editeng/source/items/svxfont.cxx
+++ b/editeng/source/items/svxfont.cxx
@@ -199,11 +199,11 @@ void SvxDoCapitals::SetSpace() { }
* calls the method SvxDoCapitals::Do( ).
*************************************************************************/
-void SvxFont::DoOnCapitals(SvxDoCapitals &rDo, const xub_StrLen nPartLen) const
+void SvxFont::DoOnCapitals(SvxDoCapitals &rDo) const
{
const OUString &rTxt = rDo.GetTxt();
const xub_StrLen nIdx = rDo.GetIdx();
- const sal_Int32 nLen = STRING_LEN == nPartLen ? rDo.GetLen() : nPartLen;
+ const sal_Int32 nLen = rDo.GetLen();
const OUString aTxt( CalcCaseMap( rTxt ) );
const sal_uInt16 nTxtLen = std::min( rTxt.getLength(), nLen );