diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-01 21:09:25 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-02 20:18:00 +0100 |
commit | c694a34261540c579c763e9d249cd5eeb5a1f34a (patch) | |
tree | 3039f9a0e90d5bbda388f35262e25a03b26d9d15 /editeng | |
parent | 3b7d6284e5a2731b93608c71a4a126f120f3c025 (diff) |
EditLine::CalcTextSize - nIndex is updated but never read
Change-Id: Iec96535e154e0467fe5e89264782efa30837bff9
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 9f06e1799b15..1ac044482b9d 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1062,8 +1062,6 @@ Size EditLine::CalcTextSize( ParaPortion& rParaPortion ) Size aTmpSz; TextPortion* pPortion; - sal_Int32 nIndex = GetStart(); - DBG_ASSERT( rParaPortion.GetTextPortions().Count(), "GetTextSize before CreatePortions !" ); for ( sal_Int32 n = nStartPortion; n <= nEndPortion; n++ ) @@ -1087,7 +1085,6 @@ Size EditLine::CalcTextSize( ParaPortion& rParaPortion ) } break; } - nIndex = nIndex + pPortion->GetLen(); } SetHeight( (sal_uInt16)aSz.Height() ); |