Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ce91f3c1
Kaydet (Commit)
ce91f3c1
authored
Kas 23, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
similar to searchForward() use the correct offsets, tdf#94810 related
Change-Id: Icb5a45acaad9029e0998594de8b3dc2e9211866e
üst
54336499
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
textsearch.cxx
i18npool/source/search/textsearch.cxx
+6
-3
No files found.
i18npool/source/search/textsearch.cxx
Dosyayı görüntüle @
ce91f3c1
...
...
@@ -404,15 +404,18 @@ SearchResult TextSearch::searchBackward( const OUString& searchStr, sal_Int32 st
for
(
sal_Int32
k
=
0
;
k
<
nGroups
;
k
++
)
{
const
sal_Int32
nStart
=
sres
.
startOffset
[
k
];
if
(
endPos
>
0
||
nStart
>
0
)
assert
(
nStart
>=
0
);
if
(
nStart
>
0
)
sres
.
startOffset
[
k
]
=
offset
[(
nStart
<=
nOffsets
?
nStart
:
nOffsets
)
-
1
]
+
1
;
else
sres
.
startOffset
[
k
]
=
offset
[
0
];
// JP 20.6.2001: end is ever exclusive and then don't return
// the position of the next character - return the
// next position behind the last found character!
// "a b c" find "b" must return 2,3 and not 2,4!!!
const
sal_Int32
nStop
=
sres
.
endOffset
[
k
];
if
(
endPos
>
0
||
nStop
>
0
)
sres
.
endOffset
[
k
]
=
(
nStop
<
nOffsets
?
offset
[
nStop
]
:
(
offset
[
nOffsets
-
1
]
+
1
));
assert
(
nStop
>=
0
);
sres
.
endOffset
[
k
]
=
(
nStop
<
nOffsets
?
offset
[
nStop
]
:
(
offset
[
nOffsets
-
1
]
+
1
));
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment