summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-01-07 18:50:32 +0100
committerAndras Timar <andras.timar@collabora.com>2015-02-23 10:35:35 +0100
commita7a22ede384cc6e8018bdede253266bba36719ea (patch)
tree65bb22f2c094588c053ee78acdca91d2dc92a3b8 /sw
parent5760c24f1db822283849ca97e91498f78e99a295 (diff)
tdf#89105: sw: Remove unnecessary downcast
This fixes an infinite loop in SwPaM::DoSearch() that can happen with 32-bit paragraphs now. (cherry picked from commit dd9972f5f37063f5fe3eb5e011d2adc73f44d305) Signed-off-by: Michael Stahl <mstahl@redhat.com> Change-Id: I7511862ddf6ed672ba4f09ef6729fb1fa7c1d355 (cherry picked from commit 620df179e0cc1339017a36840e19280f133b2a1a)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/findtxt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx
index 8b0b33cbf51b..c8edd1e0bdb3 100644
--- a/sw/source/core/crsr/findtxt.cxx
+++ b/sw/source/core/crsr/findtxt.cxx
@@ -504,8 +504,8 @@ bool SwPaM::DoSearch( const SearchOptions& rSearchOpt, utl::TextSearch& rSTxt,
}
else
{
- nStart = (sal_uInt16)nProxyStart;
- nEnd = (sal_uInt16)nProxyEnd;
+ nStart = nProxyStart;
+ nEnd = nProxyEnd;
}
nStart = nEnd;
}