diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-01-07 18:50:32 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-02-17 22:41:10 +0100 |
commit | 77a4ec86caeb0c7958a4b7fef38a3f0e883d0701 (patch) | |
tree | 59d1a384bb574d84c4e99105db2719bd6e9cf123 /sw | |
parent | dced85e8ae2ba8030adf69f376b2f2a3304d51a6 (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
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/findtxt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx index c7ac1445d427..cb30dd3913c6 100644 --- a/sw/source/core/crsr/findtxt.cxx +++ b/sw/source/core/crsr/findtxt.cxx @@ -506,8 +506,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; } |